|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Connecting queue Manager with multiple threads. |
« View previous topic :: View next topic » |
Author |
Message
|
mandy13 |
Posted: Wed May 22, 2013 6:11 am Post subject: Connecting queue Manager with multiple threads. |
|
|
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 |
|
 |
fjb_saper |
Posted: Wed May 22, 2013 11:38 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Are you correctly releasing acquired resources?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
PaulClarke |
Posted: Sun Jun 09, 2013 2:43 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|