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 » General IBM MQ Support » Number of connections to channel, problem

Post new topic  Reply to topic
 Number of connections to channel, problem « View previous topic :: View next topic » 
Author Message
dcirello
PostPosted: Wed Sep 03, 2008 7:14 am    Post subject: Number of connections to channel, problem Reply with quote

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
View user's profile Send private message
Mr Butcher
PostPosted: Wed Sep 03, 2008 7:34 am    Post subject: Reply with quote

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
View user's profile Send private message
jeevan
PostPosted: Wed Sep 03, 2008 7:36 am    Post subject: Re: Number of connections to channel, problem Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Wed Sep 03, 2008 7:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Wed Sep 03, 2008 7:47 pm    Post subject: Re: Number of connections to channel, problem Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Number of connections to channel, 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.