|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ SVRCONN |
« View previous topic :: View next topic » |
Author |
Message
|
tkurian |
Posted: Tue May 07, 2002 1:29 pm Post subject: |
|
|
Novice
Joined: 23 Jan 2002 Posts: 11
|
I have a number of developers who are using MQSeries Client to connect to my Queue Manager and unfortunately they are not closing their connections properly, and what insues is a number of channel connections that stay open for a number of days without getting closed and reaching my max channels limit.
How do I terminate idling SVRCONN channels after say (x) minutes of inactivity?
|
|
Back to top |
|
 |
oz1ccg |
Posted: Tue May 07, 2002 11:49 pm Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
Sorry sam.... NO way .....
Mabye some functionality is added in version 5.3, but the currently available version don't support killing of orphaned client channels.
I've requested the functions (together with a lot of others) from IBM, and the development team said, they would think of it.... No gurantee...
With a lot of luck (I hope) the support is added in version 5.3....
_________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
mrlinux |
Posted: Wed May 08, 2002 3:18 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
Depends on your operating system and how you launch the listener.
If platform is on UNIX and you use inetd, you can ps -ef | grep amqcrsta
and check how long they have been active, this will let you kill ones that are
days old, also be careful all channels not just svrconns use amqcrsta . also if you want a
list of pids you can use the runmqsc command to find that out
"dis chs(SVRCONN) ALL" this will produce a jobname in hex, the last half of this field is the process id, so you could use that with above search and kill process. also there are some other fields such as lstmsgti for the las time a message was sent if you want to get down to the minute.
_________________
Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
[ This Message was edited by: mrlinux on 2002-05-08 04:19 ] |
|
Back to top |
|
 |
oz1ccg |
Posted: Wed May 08, 2002 6:56 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
Jeff,
Ain't that a bit dangerous... because of the shared memory, between the client and Mqseries ?
By the way, was that solution in el manuals.....
_________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
StefanSievert |
Posted: Wed May 08, 2002 12:09 pm Post subject: |
|
|
 Partisan
Joined: 28 Oct 2001 Posts: 333 Location: San Francisco
|
tkurian,
I would think that you can achieve what you want by using standard MQ and TCP/IP facilities. Check out the following documentation:
1/ the HBINT attribute of your channel definitions (for certain failure conditions)
2/ the TCP KeepAlive setting described in the MQSeries Clients and Intercommunication manuals
3/ http://www-3.ibm.com/software/ts/mqseries/support/tandts/heartb.html
4/ http://www-3.ibm.com/software/ts/mqseries/support/tandts/keepaliv.html
5/ The documentation on your operating system's TCP/IP settings
Maybe there is light at the end of the tunnel......
....and it is not the headlight of an oncoming train...
Stefan
_________________ Stefan Sievert
IBM Certified * WebSphere MQ |
|
Back to top |
|
 |
mrlinux |
Posted: Thu May 09, 2002 4:00 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
Well it's not as dangerous as it sounds, the kill without the -9 will still signal the process amqcrsta which then can clean up and exit which I havent had
any issues with this method, However I only killed the connection after 24 hours, clients only use the client connection for at most 10minutes at a time.
_________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
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
|
|
|
|