|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Number of connections to channel, problem |
« View previous topic :: View next topic » |
Author |
Message
|
dcirello |
Posted: Wed Sep 03, 2008 7:14 am Post subject: Number of connections to channel, problem |
|
|
Newbie
Joined: 24 Apr 2008 Posts: 1
|
I'm involved with a system where there is a lot of uncoordinated testing against our queue managers. Sometimes, we have things being tested that just eat up all the available channel connections.
Is there an effective way to display the number of connections to a specific channel (a runmqsc command?) -- something that I can use in a script to alert me when we're getting close to the limit?
Even better ... is there a way to list the number of connections to a channel with their source IP?
Thanks! |
|
Back to top |
|
 |
Mr Butcher |
Posted: Wed Sep 03, 2008 7:34 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
you can display the channel status, but you will get a status for every running instance of the channel so somehow you must count yourself within the script.
the channel status will show the yource ip, but again you have to sort or summarize on your own. _________________ Regards, Butcher |
|
Back to top |
|
 |
jeevan |
Posted: Wed Sep 03, 2008 7:36 am Post subject: Re: Number of connections to channel, problem |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
dcirello wrote: |
I'm involved with a system where there is a lot of uncoordinated testing against our queue managers. Sometimes, we have things being tested that just eat up all the available channel connections.
Is there an effective way to display the number of connections to a specific channel (a runmqsc command?) -- something that I can use in a script to alert me when we're getting close to the limit?
Even better ... is there a way to list the number of connections to a channel with their source IP?
Thanks! |
if you are in unix, you can simply use
echo " dis chs(SYSTEM.Def.svrconn) " | runmqsc qmgrname | AMQ8417| wc -l
you can make an equivalent for Windows.
or you can sum up the ipprocs or opprocs what connection are you interested in different queues and make a total. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Sep 03, 2008 7:04 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
In MQ 7.0, you can limit the number of connections that a SVRCONN channel will allow, either in total or from any single IP address.
In all versions of MQ, you can use a Security Exit to limit the # of connections. We use MQAUSX from Capitalware for this.
Search here for TCP Keep Alive to help clean up orphaned client connections. And review that application code to make sure they disconnect when they are supposed, take only a reasonable amount of connections, etc.
Counting the channels is good, but solving the problem is better
4 pronged approach for excessive client connections:
Count them to alert you (MQAUSX 1.3 has nifty Event Messages we alert on so we don't have to count anymore)
Restrict them to keep the QM from being overwhelmed and maxed out
TCP Keep Alive to clean up orphaned connections
Code review to minimize (can't eliminate 100% though!) the need for the first 3 _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
gbaddeley |
Posted: Wed Sep 03, 2008 7:47 pm Post subject: Re: Number of connections to channel, problem |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
jeevan wrote: |
if you are in unix, you can simply use
echo " dis chs(SYSTEM.Def.svrconn) " | runmqsc qmgrname | AMQ8417| wc -l
|
I think you missed a grep:
echo "dis chs(YourChlName) current" | runmqsc qmgrname | grep AMQ8417 | wc -l _________________ Glenn |
|
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
|
|
|
|