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 » WebSphere Message Broker (ACE) Support » tcp connection pool from java compute node

Post new topic  Reply to topic
 tcp connection pool from java compute node « View previous topic :: View next topic » 
Author Message
MikeOliverAZ
PostPosted: Wed Oct 30, 2013 9:57 pm    Post subject: tcp connection pool from java compute node Reply with quote

Apprentice

Joined: 10 Jul 2013
Posts: 47

I want to use couchbase to store java objects for fast access and reuse in a java compute node.

The couchbase client opens one connection to the server and is thread safe, but they don't have any connection pooling.

It works great until the open file limit is exceeded if I don't do a client.shutdown(), but if I put in the client.shutdown() before ending the java compute node I don't get the too many files open exception but my performance goes way down.

One suggestion was to put the client in a singleton class, so there is only ever one client since it is thread safe, but they are running in a java application daemon...not sure if that will work in broker JCN.

Will it?

MO
Back to top
View user's profile Send private message Send e-mail
Esa
PostPosted: Wed Oct 30, 2013 11:20 pm    Post subject: Re: tcp connection pool from java compute node Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

MikeOliverAZ wrote:


One suggestion was to put the client in a singleton class, so there is only ever one client since it is thread safe, but they are running in a java application daemon...not sure if that will work in broker JCN.

Will it?


Very likely.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Oct 31, 2013 1:26 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You could put your own pool of connections into a singleton.
Back to top
View user's profile Send private message
MikeOliverAZ
PostPosted: Sun Nov 03, 2013 7:57 pm    Post subject: Yes that seems to work Reply with quote

Apprentice

Joined: 10 Jul 2013
Posts: 47

Volume testing to be sure, but the singleton pattern for the client seems to work.

MO
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » tcp connection pool from java compute node
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.