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 Discussion » Number of client connections to a queue manager

Post new topic  Reply to topic
 Number of client connections to a queue manager « View previous topic :: View next topic » 
Author Message
velocity
PostPosted: Wed Aug 12, 2009 9:24 am    Post subject: Number of client connections to a queue manager Reply with quote

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
View user's profile Send private message
RogerLacroix
PostPosted: Wed Aug 12, 2009 9:36 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
velocity
PostPosted: Wed Aug 12, 2009 9:54 am    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Wed Aug 12, 2009 10:49 am    Post subject: Reply with quote

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
View user's profile Send private message
SAFraser
PostPosted: Wed Aug 12, 2009 11:22 am    Post subject: Reply with quote

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
View user's profile Send private message
velocity
PostPosted: Wed Aug 12, 2009 11:57 am    Post subject: Reply with quote

Centurion

Joined: 30 Nov 2007
Posts: 126

Thanks guys!

I can determine the exact number now.
Back to top
View user's profile Send private message
velocity
PostPosted: Wed Aug 12, 2009 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
SAFraser
PostPosted: Wed Aug 12, 2009 12:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Aug 12, 2009 12:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
velocity
PostPosted: Wed Aug 12, 2009 12:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
hmh
PostPosted: Mon Jul 05, 2010 5:36 am    Post subject: another possibility to find out Reply with quote

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
View user's profile Send private message Visit poster's website
raj429
PostPosted: Tue Jul 06, 2010 5:03 am    Post subject: Reply with quote

Acolyte

Joined: 04 Jul 2009
Posts: 53

you can cehck with "dis qmstatus"
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jul 06, 2010 1:25 pm    Post subject: Reply with quote

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

MQSeries.net Forum Index » General Discussion » Number of client connections to a queue manager
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.