Author |
Message
|
JohnRodey |
Posted: Thu Apr 20, 2006 12:49 pm Post subject: Closing/Viewing connections |
|
|
 Centurion
Joined: 13 Apr 2005 Posts: 103
|
Is there a way to
1) view a count of the current number of open connections?
2) view a count of the current number of connection open by a single machine?
3) close a specific connection?
Thanks! |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 20, 2006 12:50 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
On v6. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Apr 20, 2006 1:38 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
1 and 2 are also possible on 5.3 (maybe even earlier versions as well) _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
JohnRodey |
Posted: Fri Apr 21, 2006 4:27 am Post subject: |
|
|
 Centurion
Joined: 13 Apr 2005 Posts: 103
|
Are there mqsc commands to show 1 & 2? |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Apr 21, 2006 4:27 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Yes. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
JohnRodey |
Posted: Mon Apr 24, 2006 12:36 pm Post subject: |
|
|
 Centurion
Joined: 13 Apr 2005 Posts: 103
|
How?
I looked through dis chstatus() and dis channel() but didn't see anything that would display the number of connections open.
Didn't find a way to close a specific connection either. |
|
Back to top |
|
 |
wschutz |
Posted: Mon Apr 24, 2006 12:43 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
It varies, which version of MQ (and for grin's, which OS)? _________________ -wayne |
|
Back to top |
|
 |
JohnRodey |
Posted: Wed Apr 26, 2006 5:32 am Post subject: |
|
|
 Centurion
Joined: 13 Apr 2005 Posts: 103
|
MQ Ver 5.3.10, Solaris
Thanks wschutz |
|
Back to top |
|
 |
LuisFer |
Posted: Wed Apr 26, 2006 6:27 am Post subject: |
|
|
 Partisan
Joined: 17 Aug 2002 Posts: 302
|
JohnRodey wrote: |
MQ Ver 5.3.10, Solaris |
If the OS was z/OS a <cpfid> DIS DQM shows the total conns. |
|
Back to top |
|
 |
wschutz |
Posted: Wed Apr 26, 2006 7:05 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
view a count of the current number of open connections |
If you mean qmgr connections, then for v5.3, the answer is "no". In v5.3, you can list the "connections" for a queue however; DISPLAY QSTATUS(*) TYPE(HANDLE) ALL
The only way to break the connections in v5.3 is good olde "kill".
In V6, life is much better.....
Quote: |
dis conn(*) appltag pid
5 : dis conn(*) appltag pid
AMQ8276: Display Connection details.
CONN(DEB24E4401010020)
EXTCONN(414D51435753434855545A2020202020)
TYPE(CONN)
PID(6069) APPLTAG(amqzfuma)
AMQ8276: Display Connection details.
CONN(DEB24E4401020020)
EXTCONN(414D51435753434855545A2020202020)
TYPE(CONN)
PID(6232) APPLTAG(amqrrmfa)
AMQ8276: Display Connection details.
CONN(DEB24E4401040020)
EXTCONN(414D51435753434855545A2020202020)
TYPE(CONN)
PID(6234) APPLTAG(amqzdmaa)
AMQ8276: Display Connection details.
CONN(DEB24E4401050020)
EXTCONN(414D51435753434855545A2020202020)
TYPE(CONN)
PID(6285) APPLTAG(runmqchi)
AMQ8276: Display Connection details.
CONN(DEB24E4401070020)
EXTCONN(414D51435753434855545A2020202020)
TYPE(CONN)
PID(6287) APPLTAG(amqpcsea)
AMQ8276: Display Connection details.
CONN(DEB24E4404080020)
EXTCONN(414D51435753434855545A2020202020)
TYPE(CONN)
PID(10700) APPLTAG(amqsput)
AMQ8276: Display Connection details.
CONN(DEB24E4401090020)
EXTCONN(414D51435753434855545A2020202020)
TYPE(CONN)
PID(10420) APPLTAG(runmqsc)
|
Quote: |
stop CONN(DEB24E4404080020)
10 : stop CONN(DEB24E4404080020)
AMQ8457: WebSphere MQ connection stopped.
|
_________________ -wayne |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Apr 26, 2006 7:42 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
The MO71 support pack lets you see how many instances of a client channel there are, and from what server they are coming from. It also can tell you how many connections there are to a particular q, and from who.
Calling runmqsc in a script to pass these commands and then counting the lines of output is another way to do this. A quick search here should show you how. Windows and Unix samples have been posted. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
bbburson |
Posted: Wed Apr 26, 2006 9:42 am Post subject: |
|
|
Partisan
Joined: 06 Jan 2004 Posts: 378 Location: Nowhere near a queue manager
|
wschutz wrote: |
The only way to break the connections in v5.3 is good olde "kill". |
Really? I've had good results with runmqsc command
Code: |
STOP CHANNEL(channelname) CONN('ip.address') |
|
|
Back to top |
|
 |
wschutz |
Posted: Wed Apr 26, 2006 10:12 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Bruce... that doesn't work for server bound applications. _________________ -wayne |
|
Back to top |
|
 |
JohnRodey |
Posted: Wed Apr 26, 2006 11:53 am Post subject: |
|
|
 Centurion
Joined: 13 Apr 2005 Posts: 103
|
Thanks for your help everyone. I'll take a look at that service pack. |
|
Back to top |
|
 |
|