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 TCP/IP connections in a JMS Topic session

Post new topic  Reply to topic
 Number of TCP/IP connections in a JMS Topic session « View previous topic :: View next topic » 
Author Message
sieijish
PostPosted: Wed Sep 16, 2009 2:36 am    Post subject: Number of TCP/IP connections in a JMS Topic session Reply with quote

Acolyte

Joined: 29 Nov 2004
Posts: 67
Location: London

I am wondering how many TCP/IP connections are opened between an MQ Java client & the Server. The connection is established using a server connection channel.

TopicConnection tConn = tcf.createTopicConnection();
- After this line I see 2 Tcp/IP connections using netstat command
- In the MQ Explorer svr connection status window only one connection exists

Question: why is MQ using 2 TCP/IP connections?

TopicSession tSess = tConn.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
Topic topic = tSess.createTopic("LCUnit/sieijish");

Now after creating the topic,
- I see 6 TCP/IP connections
- 3 connections listed in the channel status window.

Question: Why is this overhead for creating Topic? Can this be reduced?

Now to clean up the connections, I do

tSess.close();
Note: This has absolutely no impact. All 6 tcp/ip connections are still open

tConn.close();
This closes all the connections.


I am doing a proof of concept to see whether it is possible to have around 4000 simultaneously active clients connecting to MQ Server with each client publishing messages to a number of topics on the server. Each client will be sending about say 1msg per sec. I am concerned about the number of TCP/IP connections opened and closed and the best way to manage these connections. With 6 connections to publish to a topic, i am looking at 6*4000 tcp/ip parallel connections!!

Yes, we need a cluster of server with clients possibly doing a round-robin, but to start with I need somehow find out how much each server can cope and the efficient behaviour of the clients. May be connect, disconnect or stay connected...





Let me know your thoughts.
Back to top
View user's profile Send private message
terlisimo
PostPosted: Tue Dec 01, 2009 3:43 pm    Post subject: Reply with quote

Newbie

Joined: 09 Nov 2009
Posts: 8

you could do connectionFactory.setUseConnectionPooling(true);
Back to top
View user's profile Send private message
manicminer
PostPosted: Wed Dec 02, 2009 5:17 am    Post subject: Reply with quote

Disciple

Joined: 11 Jul 2007
Posts: 177

Make sure you use V7 client and server. This has optimisations both in terms of pub/sub and the use of connections back to the server.
_________________
Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Dec 02, 2009 9:56 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Back to your question:
How do you determine that there is 2 connections opened in TCP/IP when the connection is created?

Anyways the count to the max connections on the channel is what MQ reports in the channel status not what the OS says...
_________________
MQ & Broker admin
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 » IBM MQ Java / JMS » Number of TCP/IP connections in a JMS Topic session
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.