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 Java / JMS » Concurrent Problem?

Post new topic  Reply to topic
 Concurrent Problem? « View previous topic :: View next topic » 
Author Message
xyzcom1983
PostPosted: Sun Feb 04, 2007 7:44 pm    Post subject: Concurrent Problem? Reply with quote

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
View user's profile Send private message
xyzcom1983
PostPosted: Sun Feb 04, 2007 11:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Feb 05, 2007 3:38 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
andy840920
PostPosted: Thu May 10, 2007 3:36 am    Post subject: Reply with quote

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
View user's profile Send private message
marcin.kasinski
PostPosted: Thu May 10, 2007 4:59 am    Post subject: Reply with quote

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
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 Java / JMS » Concurrent Problem?
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.