|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Number of open connections never decreases |
« View previous topic :: View next topic » |
Author |
Message
|
infometis |
Posted: Mon Jan 27, 2003 7:02 am Post subject: Number of open connections never decreases |
|
|
 Newbie
Joined: 27 Jan 2003 Posts: 4 Location: Zürich, Switzerland
|
Hi All,
There is a property myQueue.getOpenInputCount() which returns the number of connections listenering to a queue in get (read) mode.
When we run our pull program which gets the message from the queue - we open the queue in shared mode - the number of getOpenInputCount() increases by 1, when we exit the program with system.exit() or control-C then the count goes down by 1 - great, now the problem...
We would like our pull program to be able to handle network outrages, the queue throws the usual MQRC_CONNECTION_BROKEN exception, we catch this in our program and sleep - after 20 seconds we attempt to re-open the queue, this works but the number of getOpenInputCount() increases by 1.
The heartbeat is set to 10millseconds so we had hoped that these connections would be closed.
Is there a way to force the queue to clean up these "dead" connections?
Thanks _________________ Richie |
|
Back to top |
|
 |
mrlinux |
Posted: Mon Jan 27, 2003 1:44 pm Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
Well v5.3 is suppose to able to tell what process's have the queue open.
You should be able to develop a script to close the queue handles, _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
infometis |
Posted: Tue Jan 28, 2003 3:31 am Post subject: |
|
|
 Newbie
Joined: 27 Jan 2003 Posts: 4 Location: Zürich, Switzerland
|
Hi All,
We will run the queue locally on the same machine as the program - should cut down on the network errors  _________________ Richie |
|
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
|
|
|
|