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 » IBM MQ Java / JMS » Number of open connections never decreases

Post new topic  Reply to topic
 Number of open connections never decreases « View previous topic :: View next topic » 
Author Message
infometis
PostPosted: Mon Jan 27, 2003 7:02 am    Post subject: Number of open connections never decreases Reply with quote

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
View user's profile Send private message
mrlinux
PostPosted: Mon Jan 27, 2003 1:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
infometis
PostPosted: Tue Jan 28, 2003 3:31 am    Post subject: Reply with quote

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

MQSeries.net Forum Index » IBM MQ Java / JMS » Number of open connections never decreases
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.