Author |
Message
|
Andarivadu |
Posted: Fri May 20, 2005 7:16 am Post subject: [SOLVED] MAX Channels Reached - Error |
|
|
 Novice
Joined: 18 Apr 2005 Posts: 11
|
All,
I have defined 25 Channels (SENDER + RECEIVER) in a QMgr (QM1). I have the default values (which is 100) for MAXCHANNELS, MAXACTIVECHANNELS in QM.INI file.
I am browsing thru the error log and find out that there were lot of error messages saying
Quote: |
Max Channels Reached |
1) Is it possible to get error like that? If yes, what could have caused that error?
Thanks in Advance
Last edited by Andarivadu on Tue May 24, 2005 8:54 am; edited 1 time in total |
|
Back to top |
|
 |
mq_crazy |
Posted: Fri May 20, 2005 7:27 am Post subject: |
|
|
 Master
Joined: 30 Jun 2004 Posts: 295
|
Make sure your clients are disconnecting properly after they finish. |
|
Back to top |
|
 |
Andarivadu |
Posted: Fri May 20, 2005 8:04 am Post subject: |
|
|
 Novice
Joined: 18 Apr 2005 Posts: 11
|
mq_crazy wrote: |
Make sure your clients are disconnecting properly after they finish. |
You mean MQ Clients? Can you please elaborate?
Thanks |
|
Back to top |
|
 |
Anirud |
Posted: Fri May 20, 2005 8:10 am Post subject: |
|
|
 Master
Joined: 12 Feb 2004 Posts: 285 Location: Vermont
|
Chiru1 wrote: |
mq_crazy wrote: |
Make sure your clients are disconnecting properly after they finish. |
You mean MQ Clients? Can you please elaborate? |
Could be MQ/JAVA/JMS etc.
If you are not sure of client connection, do a dis chs(*) and check the output. If you see any SVRCONN channels running, it means that you have client connection. |
|
Back to top |
|
 |
Andarivadu |
Posted: Fri May 20, 2005 9:34 am Post subject: |
|
|
 Novice
Joined: 18 Apr 2005 Posts: 11
|
Thanks for the replies guys.
I am in home now and cannot access that QMgr to issue "dis chs(*)".
As Anirud mentioned, I have more than 100 JMS Clients accessing this QMgr. I have one System defined Defaulted SVRCONN channel (SYSTEM.DEF.SVRCONN) defined for this QMgr.
1) I beleive all those JMS Clients connect to this QMgr using that one SVRCONN Channel only. (Correct me if I am wrong) ? |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri May 20, 2005 9:50 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Chiru1 wrote: |
As Anirud mentioned, I have more than 100 JMS Clients accessing this QMgr. I have one System defined Defaulted SVRCONN channel (SYSTEM.DEF.SVRCONN) defined for this QMgr. |
It doesn't matter how many SVRCONNs you have defined.
This error is thrown when the total number of connections - client and otherwise, is exceeded.
So if you have 25 recievers, and they are all active, then only 75 JMS clients can connect. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri May 20, 2005 12:12 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
And you should make a dedicated SVRCONN channel for each client (JMS) app. That way you can easily see which one is misbehaving and taking to many connections.
-Peter _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
csaunders |
Posted: Fri May 20, 2005 1:05 pm Post subject: |
|
|
Acolyte
Joined: 27 Mar 2003 Posts: 64 Location: Arlington, Va
|
what about setting this in mqs.ini
MAXACTIVECHANNELS=800
MAXCHANNELS=800
we use 800 |
|
Back to top |
|
 |
Anirud |
Posted: Fri May 20, 2005 2:57 pm Post subject: |
|
|
 Master
Joined: 12 Feb 2004 Posts: 285 Location: Vermont
|
csaunders wrote: |
what about setting this in mqs.ini
MAXACTIVECHANNELS=800
MAXCHANNELS=800
we use 800 |
That would not solve the issue if the client application are not disconnecting properly.
Regards. |
|
Back to top |
|
 |
vennela |
Posted: Fri May 20, 2005 3:18 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
csaunders wrote: |
what about setting this in mqs.ini
MAXACTIVECHANNELS=800
MAXCHANNELS=800
we use 800 |
It should be in qm.ini and not mqs.ini |
|
Back to top |
|
 |
teal |
Posted: Fri May 20, 2005 3:27 pm Post subject: |
|
|
 Acolyte
Joined: 15 Dec 2004 Posts: 66
|
Peter,
ahhh..
So are you saying for example in the 5.1 Websphere Admin Console and setting up a JMS QueueConnectionFactory after you have specified :
Quote: |
...
Queue Manager QMGR1
Host 172.33.44.55
Transport Type CLIENT
...
|
you should also set the "Channel Name" to some SVRCONN channel you create in actual WMQ5.3 for this queue connection factory?
if you leave the channel attribute blank it will automatically take SYSTEM.DEF.SVRCONN? |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri May 20, 2005 3:44 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Anirud's point is upping the max xhannels only delays the inevitable if the app is not disconnecting, leaving behind dozens, hundreds, thousands, millions...OK it won't get to millions....of orphaned channel connections.
teal, I believe that's the way it works. I require every app to use a dedicated SVRCONN channel, and sometimes within one app that has multiple components, each component gets their own channel. Not only is it easy to see who is misbehaving, but it also is easy to shut down that one channel, leaving all others unaffected. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
Anirud |
Posted: Mon May 23, 2005 8:01 am Post subject: |
|
|
 Master
Joined: 12 Feb 2004 Posts: 285 Location: Vermont
|
Peter,
Thanks. That was exactly what I was thinking when I was replying to that post. Did not put it in exact words.
Thanks. |
|
Back to top |
|
 |
Andarivadu |
Posted: Tue May 24, 2005 8:54 am Post subject: |
|
|
 Novice
Joined: 18 Apr 2005 Posts: 11
|
Thanks all for your replies guys. |
|
Back to top |
|
 |
|