ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » MQCONNX takes a long time to return on AIX 5.3 ML4

Post new topic  Reply to topic
 MQCONNX takes a long time to return on AIX 5.3 ML4 « View previous topic :: View next topic » 
Author Message
shashikanth_in
PostPosted: Mon Jun 01, 2009 3:57 am    Post subject: MQCONNX takes a long time to return on AIX 5.3 ML4 Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Jun 01, 2009 4:13 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
shashikanth_in
PostPosted: Mon Jun 01, 2009 8:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Jun 02, 2009 2:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
shashikanth_in
PostPosted: Thu Jun 04, 2009 3:47 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Jun 04, 2009 8:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQCONNX takes a long time to return on AIX 5.3 ML4
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.