Author |
Message
|
velocity |
Posted: Wed Aug 12, 2009 9:24 am Post subject: Number of client connections to a queue manager |
|
|
Centurion
Joined: 30 Nov 2007 Posts: 126
|
Hi Guys..We have a MQ client conecting to a QM..Is there any way to find out how many client connections are conected to the QM.
I did a DIS CONN(*) and it results in showing hundreds of connections. Is there a way to find the exact number? |
|
Back to top |
|
 |
RogerLacroix |
Posted: Wed Aug 12, 2009 9:36 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
Code: |
netstat -an | grep 1.1.1.1 | grep #### | wc -l |
If you run it on the client machine then:
- 1.1.1.1 is the IP address of where the queue manager is running
- #### is the port number of the queue manager
If you run it on the server machine (where the queue manager is running) then:
- 1.1.1.1 is the IP address of the client machine
- #### is the port number of the queue manager
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
velocity |
Posted: Wed Aug 12, 2009 9:54 am Post subject: |
|
|
Centurion
Joined: 30 Nov 2007 Posts: 126
|
Thank you. I will try that also.
I tried this: wouldnt this work?
echo "dis conn(*)" | runmqsc | grep TYPE | wc -l |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Aug 12, 2009 10:49 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Connections to a QM are not the same as how many client channels you have connected to the QM. Display channel status for all the svrconn channels and count them. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
SAFraser |
Posted: Wed Aug 12, 2009 11:22 am Post subject: |
|
|
 Shaman
Joined: 22 Oct 2003 Posts: 742 Location: Austin, Texas, USA
|
You are on the right track! Try 'dis chs' instead of 'dis conn'. Grep on whatever term in the chs display you wish, i.e. all svrconns or only a particular channel name.
btw, "grep -c" will count the lines returned. |
|
Back to top |
|
 |
velocity |
Posted: Wed Aug 12, 2009 11:57 am Post subject: |
|
|
Centurion
Joined: 30 Nov 2007 Posts: 126
|
Thanks guys!
I can determine the exact number now. |
|
Back to top |
|
 |
velocity |
Posted: Wed Aug 12, 2009 12:05 pm Post subject: |
|
|
Centurion
Joined: 30 Nov 2007 Posts: 126
|
I see there are 502 channels when I do a dis chs(channel_name). There is only one SVRCONN.
The queue manager attribute MAXHANDLES is 256. Wonder why the listener ports didnt stop.
Also there is an attribute called CMDLEVEL on the queue manager. Is that related to the above? |
|
Back to top |
|
 |
SAFraser |
Posted: Wed Aug 12, 2009 12:11 pm Post subject: |
|
|
 Shaman
Joined: 22 Oct 2003 Posts: 742 Location: Austin, Texas, USA
|
MAXHANDLES relates to opens on queue objects, not on channel connections.
The default for maximum channels is 100/queue manager and for maximum active channels is 100/queue manager. It can be set in the qm.ini to a higher number. It is not a value that can be queried in runmqsc by 'dis qmgr'.
If the max chl or max active is reached, listener ports do not 'stop'. The queue manager simply refuses additional connections.
CMDLEVEL refers to the base version of your MQ installation. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 12, 2009 12:12 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
velocity wrote: |
The queue manager attribute MAXHANDLES is 256. Wonder why the listener ports didnt stop. |
Because MAXHANDLES has nothing to do with Connections.
 |
|
Back to top |
|
 |
velocity |
Posted: Wed Aug 12, 2009 12:38 pm Post subject: |
|
|
Centurion
Joined: 30 Nov 2007 Posts: 126
|
SAFraser wrote: |
MAXHANDLES relates to opens on queue objects, not on channel connections.
The default for maximum channels is 100/queue manager and for maximum active channels is 100/queue manager. It can be set in the qm.ini to a higher number. It is not a value that can be queried in runmqsc by 'dis qmgr'.
If the max chl or max active is reached, listener ports do not 'stop'. The queue manager simply refuses additional connections.
CMDLEVEL refers to the base version of your MQ installation. |
Thank you for the detailed explanation |
|
Back to top |
|
 |
hmh |
Posted: Mon Jul 05, 2010 5:36 am Post subject: another possibility to find out |
|
|
 Apprentice
Joined: 31 Mar 2006 Posts: 29 Location: Germany
|
echo 'dis chs(*)' | runmqsc <QMGR> | grep CHANNEL| sort | uniq -c _________________ Michael Hoppe
63067 Offenbach
+49 (0)170 / 9629 131
http://www.hmhcs.de |
|
Back to top |
|
 |
raj429 |
Posted: Tue Jul 06, 2010 5:03 am Post subject: |
|
|
Acolyte
Joined: 04 Jul 2009 Posts: 53
|
you can cehck with "dis qmstatus" |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jul 06, 2010 1:25 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
raj429 wrote: |
you can cehck with "dis qmstatus" |
if you mean dis qmstatus conns it will give you the total of connections but lack the fine grained information that you can get with a dis chs(*), specially if you need to troubleshoot the problem.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|