Author |
Message
|
shashikanth_in |
Posted: Mon Jun 01, 2009 3:57 am Post subject: MQCONNX takes a long time to return on AIX 5.3 ML4 |
|
|
Centurion
Joined: 26 Feb 2009 Posts: 123
|
I am running MQ sample on IP v6 enabled dual stack machine running AIX 5.3 ML4.
MQCONNX call takes almost 2.5 minutes to return if I use "localhost(<port>)". Took MQ trace and I could see that getaddrinfo API is taking more time to return. Is there something that I should be setting on the AIX box? If I use IP address (say 127.0.0.1) MQCONNX returns immediately.
Thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jun 01, 2009 4:13 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Did you check the hosts file for the definition of localhost?
127.0.0.1 is an IP V4 address. May be your box doesn't deal too well with IP V6 internally but is able to route it correctly to some outside destination...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
shashikanth_in |
Posted: Mon Jun 01, 2009 8:59 pm Post subject: |
|
|
Centurion
Joined: 26 Feb 2009 Posts: 123
|
These are the entries in the hosts file
127.0.0.1 localhost
And I have entries for both ipv4 and ipv6 addresses also in the hosts file.
xxx.xx.x.xx myaix.mycmp.com myaix
fecc:x :ax: myaix.mycmp.com myaix
where x stands for some number.
Any ideas? |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jun 02, 2009 2:30 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Any ideas?
Well you can try one thing:
you should possibly have 2 entries for localhost
1 as ipV4 127.0.0.1 localhost
1 as ipV6 xxxx:xxxx:xxxx:xxxx localhost
change the ipV6 from localhost to localhostv6.
Now see the time it takes to resolve localhost and the time it takes to resolve localhostv6...
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
shashikanth_in |
Posted: Thu Jun 04, 2009 3:47 am Post subject: |
|
|
Centurion
Joined: 26 Feb 2009 Posts: 123
|
Yes, your suggestion helps. Thanks
With localhostipv6 the call returns fast but with localhost it takes a long time as earlier. So the issue is only with localhost defined as 127.0.0.1. I think it will work if we change localhost to real ipv4 address of the machine. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jun 04, 2009 8:09 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
shashikanth_in wrote: |
Yes, your suggestion helps. Thanks
With localhostipv6 the call returns fast but with localhost it takes a long time as earlier. So the issue is only with localhost defined as 127.0.0.1. I think it will work if we change localhost to real ipv4 address of the machine. |
Not so sure. If localhost ie 127.0.0.1 takes a long time to return I'd say there is something fishy in your tcp/ip setup. Have you checked your routing for localhost? "innocent: _________________ MQ & Broker admin |
|
Back to top |
|
 |
|