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 » Client Connection Pool - netstat

Post new topic  Reply to topic
 Client Connection Pool - netstat « View previous topic :: View next topic » 
Author Message
mkurley
PostPosted: Thu Jun 19, 2003 7:46 am    Post subject: Client Connection Pool - netstat Reply with quote

Novice

Joined: 27 Mar 2002
Posts: 13

We wrote a connection pool to hold the QueueConnection objects that are created. Users of the pool ask for a connection then open up a QueueSession and QueueSender. After the message is sent it closes the queueSession and queueSender. Then it returns the QueueConnection to the pool. The pool is working correctly because the connections are reused.

I notice that on the machine the client connects to, it opens a new socket for each message it sends. If I run the command "netstat -a" the connections to port 1414 keep increasing. From my testing I noticed that these ports are only closed when the close method is called on the QueueConnection. Thus I don't see anyway we can pool these client connections.

Is it possible to pool client connections? Am I doing something wrong?

For forward all comments and suggestions.

Thanks
-mark
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Jun 19, 2003 8:05 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

What version of the MQ code are you running? There were some fixes put into some of the later (after CSD4) CSDs for MQ 5.2 that were in the area of freeing up connections.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
mkurley
PostPosted: Thu Jun 19, 2003 9:44 am    Post subject: Reply with quote

Novice

Joined: 27 Mar 2002
Posts: 13

We are running version 5.2.0.5. Were the fixes in a CSD later than 5?
Back to top
View user's profile Send private message
mkurley
PostPosted: Fri Jun 20, 2003 5:44 am    Post subject: Reply with quote

Novice

Joined: 27 Mar 2002
Posts: 13

I just upgraded to version 5.2.0.6 and I am still experiencing the same problem. Are there any new mq jar files that I need to use on the client side? I looked in the /usr/mqm/java/lib directory and it doesn't look like these jar files have been updated.

Please advise.

Thanks
-mark
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jun 20, 2003 5:46 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

In 5.2 the java classes are part of MA88, and not the base product.

So if you need to update your java classes for 5.2, you need to get the most recent version of MA88.
Back to top
View user's profile Send private message
dtauzell
PostPosted: Fri Jun 27, 2003 10:21 am    Post subject: Reply with quote

Apprentice

Joined: 23 May 2002
Posts: 37

I implemented a connection pool by pooling QueueSessions. There is one QueueConnection in the pool. So you check out a pair, create your QueueSender, close the QueueSender and the check the connection/session back in.

In addition, the pool creates a queue subscriber that listens on a "monitor" queue. It also registers a jmx exception listener. That way if the connection dies it gets notified and can remove all cached sessions.

-Dave
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 » Client Connection Pool - netstat
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.