|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Concurrent Problem? |
« View previous topic :: View next topic » |
Author |
Message
|
xyzcom1983 |
Posted: Sun Feb 04, 2007 7:44 pm Post subject: Concurrent Problem? |
|
|
Newbie
Joined: 04 Feb 2007 Posts: 7
|
Hello all,
I have used muti-thread to connect to the websphere MQ
If I used about 80 threads, after about 30 minutes, MQ throw problem 2059, and if I used 120 threads, problem 2009 will appear in five minutes and problem 2059 will appear in about ten minutes. After the problems throwed, my program can run, but some threads has intercepted!
I have already test my program, one thread has no problem.
I think maybe MQ has the limit of thread numbers, any suggestions? Thank you |
|
Back to top |
|
 |
xyzcom1983 |
Posted: Sun Feb 04, 2007 11:30 pm Post subject: |
|
|
Newbie
Joined: 04 Feb 2007 Posts: 7
|
I know the problems. Becasue I have many threads, and each thread will disconnect the QManager, so MQ will throw 2059 and 2009
Now I want any suggestions about muti-thread for use QManager.
Did I need a connection pool when I connect and disconnect to the QManager or I should only use singleton QManager for about 80 threads |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Feb 05, 2007 3:38 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Depending on the usage you plan for the qmgr you might want to look at max active connections. Using pooling is a good idea any time and a must with J2EE JMS.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
andy840920 |
Posted: Thu May 10, 2007 3:36 am Post subject: |
|
|
Apprentice
Joined: 29 Apr 2007 Posts: 44
|
xyzcom1983 wrote: |
I know the problems. Becasue I have many threads, and each thread will disconnect the QManager, so MQ will throw 2059 and 2009
Now I want any suggestions about muti-thread for use QManager.
Did I need a connection pool when I connect and disconnect to the QManager or I should only use singleton QManager for about 80 threads |
it's differency between multi-thread with multi-process? my program use fork to make child process and MQCONNX, DISCONN the QManager in it. but sometimes MQCONNX ended with 2059. how to change the limit of the connection? |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Thu May 10, 2007 4:59 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
andy840920 wrote: |
how to change the limit of the connection? |
There is MAXHANDS attribute of QMGR. _________________ Marcin |
|
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
|
|
|
|