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 » Connecting queue Manager with multiple threads.

Post new topic  Reply to topic
 Connecting queue Manager with multiple threads. « View previous topic :: View next topic » 
Author Message
mandy13
PostPosted: Wed May 22, 2013 6:11 am    Post subject: Connecting queue Manager with multiple threads. Reply with quote

Apprentice

Joined: 17 Apr 2013
Posts: 28

Hi folks,

We are trying to publish messages on a topic using multiple connection handles for a queue manager. We are using threads for this.
However when we use fifty threads the messages are properly pulbished on to the topic but as we go on increasing the threads, to say 500,
we get the following reason codes 2071,2012,2538 for some threads and then the program crashes giving reason code as 2059 for remaining threads

I thought that may be due to restriction on the number of connection handle we are getting these errors. So I tried
1. adding channels stanza to qm.ini file
CHANNELS:
MaxChannels=<number>
MaxActiveChannels=<number>

2. altering MAXHANDS of my queuemanager to 2000


But found no luck in the above approaches.
Kindly help me in solving this issue.

PS. We have created our own Library for calling websphere MQ API.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed May 22, 2013 11:38 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Are you correctly releasing acquired resources?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
PaulClarke
PostPosted: Sun Jun 09, 2013 2:43 pm    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

Well, not sure about all these reason codes but one or two of them may be because of your listener backlog setting. If you just start 50 threads and have them all connect at exactly the same millisecond then it is possible that some of them are rejected. You notice this problem particularly if using a Windows Client machine as your server. Microsoft limits the backlog on a Windows Client to 5 connections. So, if you try and connect lots of clients at exactly the same time many are likely to fail. Other platforms will have other limits. By default MQ tries to set a backlog of 100 on most of the platforms. You can raise this but there is no guarantee it will be heeded by the system.

Note that backlog is quite different to maxchannels although oddly they tend to have the same out of the box default. Even with a backlog of 1 you could still start a thousand clients provided you started them one at a time.

Cheers,
Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Connecting queue Manager with multiple threads.
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.