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 » General IBM MQ Support » Relationship between socket, WAS and MQ connections

Post new topic  Reply to topic
 Relationship between socket, WAS and MQ connections « View previous topic :: View next topic » 
Author Message
HenriqueS
PostPosted: Tue Jun 04, 2013 12:48 pm    Post subject: Relationship between socket, WAS and MQ connections Reply with quote

Master

Joined: 22 Sep 2006
Posts: 235

Hello,

Whats the relationship between:

a) Outgoing socket connections from my WAS server (from a defined queue connection factory defined with a maximum of channels);

b) Incoming socket connections arriving at my MQ server.

c) Incoming MQ connections arriving at my MQ server and reported with DISPLAY CONN(*)

d) MaxChannels setting on ini file.

I am asking this because I have seen some differences on these numbers.

Example:
Running netstat -a | grep mymqserver | wc -l at my WAS server returns about the same as running netstat -a | grep mywasserver | wc -l at my MQ server. So this is fine.

Running DISPLAY CONN(*) CONNAME | grep mywasserver | wc -l at my MQ server returns a tottally different number, quite big, usually at 10 times the number of socket connections.

So at the very end, how to I calculate the best option for my MaxChannels setting in the ini file ? I noticed that while my WAS server had a queue connections factory allowing at most 150 connections to my MQ server, there were arriving a lot more connections followoing the report with the DISPLAY CONN(*) CONNAME command.

I always thought this was a 1 (socket WAS) to 1 (socket MQ) to 1 (MQ CONN) relation....but it is looking something like 1-1-10 !
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 04, 2013 12:52 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

sharecnv?
Back to top
View user's profile Send private message
HenriqueS
PostPosted: Wed Jun 05, 2013 2:16 pm    Post subject: Reply with quote

Master

Joined: 22 Sep 2006
Posts: 235

Understood, maybe yes, the sharecnv setting influences the active channel count.

Also I realizes that connections pool and session pool property settings on WAS will produce a multiple of incoming connections to my MQ.

I am not really sure about the right formula. On this link (http://www-01.ibm.com/support/docview.wss?uid=swg21304585) IBM tries to show up a formula, but disregards sharecnv, stating only this:

MaxChannels = (WAS connection pool + (WAS connection pool x WAS session pool)) + incoming DQM connections

But since the default for sharecnv is 10 on my install, it seems to indicate the ratio I pointed out on my first message.

One thing to note - actually I did not get a AMQ9513 (Maximum number of channels reached), but I had several server connection failures, with the listener process being ended and transactions rolling back.

Other links that helped so far:

http://www-01.ibm.com/support/docview.wss?uid=swg21304585
http://www-01.ibm.com/support/docview.wss?uid=swg21201242
http://www-01.ibm.com/support/docview.wss?uid=swg21168924 - talks also about summing MDB listeners (we do not have MDBs here)
http://www.ibm.com/developerworks/websphere/library/techarticles/0602_kesavan/0602_kesavan.html - special on MDB.

so, where sharecnv would fit on the formula ?
Back to top
View user's profile Send private message
mvic
PostPosted: Wed Jun 05, 2013 2:50 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

HenriqueS wrote:
so, where sharecnv would fit on the formula ?

You seem to have done a lot of research. You probably now know more than most people here. So we should be asking you the above question.
Back to top
View user's profile Send private message
HenriqueS
PostPosted: Thu Jun 06, 2013 8:56 am    Post subject: Reply with quote

Master

Joined: 22 Sep 2006
Posts: 235

Found this interesting resource regarding TCP/IP Connection usage between WebSphere Application Server V7 and V8, and WebSphere MQ V7...

*http://www-01.ibm.com/support/docview.wss?uid=swg21507483

So I concluded (someone correct me please):

* MaxChannels on the qm.ini = (WAS connection pool + (WAS connection pool x WAS session pool) + incoming DQM conns + internal MQ conns
*Maximum number of conversations = MaxChannels on the qm.ini - (DQM incoming conns + internal MQ conns)
* Maximum number of TCP/IP channel instances = Maximum number of conversations / SHARECNV for the channel being used

Now, what would be the good values for the connection pool, session pool and SHARECNV? I think only your mileage and system load will tell. There is a balance that should be sought on the following variables:
# of WAS threads acessing the connection factory
# of connection and session pools on WAS
# of SHARECNV on MQ
While at same time avoiding a big number of TCP/IP instances (saving the TCP/IP stack resources) and obtaining good throughput.
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 » General IBM MQ Support » Relationship between socket, WAS and MQ connections
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.