Author |
Message
|
tricky_knight |
Posted: Tue May 17, 2005 3:34 pm Post subject: MQ and WebSphere App Server Connections |
|
|
Apprentice
Joined: 12 Mar 2005 Posts: 34
|
Running MQ 5.3 svr w/WAS 5.1 on Linux.
I am trying to understand exactly how this works and would appreciate any insight.
Suppose I have a receiver(MDB) and a sender (SLSB)
I have each configured so that the MAX connections for the MDB listener is 20 and the queueconnectionfactories/connection pool/session pool for both the MDB and StatelessSB are set to 20.
are 40 connections created when the was server comes up and are sitting in the pool ready to use? If I leave the MAX ACTIVE CHLS and MAX CHLS at 100 how could I ever reach the threshold and make it puke and recieve the AMQ9513 error (too many channels)
I know even though these channels are not "full blown" channels i.e. sender/receiver etc, they are client channels that were configure in the Admin console for each QCF. I think I would need to set it to 51 for each and then I could make it blow up.
any experts that know exactly how this connection pooling works with MQ?
thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue May 17, 2005 6:15 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Yes. Use the search button and look for keyword topology. There is a pdf by ibm. Enjoy  |
|
Back to top |
|
 |
tricky_knight |
Posted: Wed May 18, 2005 11:27 am Post subject: |
|
|
Apprentice
Joined: 12 Mar 2005 Posts: 34
|
I am assuming the
was referring to 40 connections are fired up on WAS startup.
However the main question has to do with the relationship between MQ-WAS.
when conducting a search with "topology" I did see some posts, but none of which refers to IBM.pdf
can anyone else elaborate?
thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed May 18, 2005 6:32 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
|
Back to top |
|
 |
tricky_knight |
Posted: Thu May 19, 2005 6:18 pm Post subject: |
|
|
Apprentice
Joined: 12 Mar 2005 Posts: 34
|
thanks for the link. I read the document and it was good.
However, it does not answer my question.
I guess My question is - that say I only have one sender and one receiver channel going to the appserver..how would I exceed the MacChannel of 100??
like I said I have the MDB listener max conn set to 20 and the SLSB set to 20
I am sending a ton of messages through to the system.. i am closing the session and connection each time the SLSB is called
am i missing something? does the connection.close() do a MQDISC under the covers?
I realize I can change this setting teh qm.ini but I want to understand completely how this is working.
thanks again |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu May 19, 2005 7:28 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
The pdf explains exactly how you need to count the connections in case of MDB. What to set as max pool etc... But you may have to read the reference documents as well. Some excellent documentation has links in the pdf. Explore them.
In your case my guess is that your pool size will exceed the 100 mark pretty fast.
Enjoy  |
|
Back to top |
|
 |
tricky_knight |
Posted: Thu Jun 23, 2005 6:41 pm Post subject: |
|
|
Apprentice
Joined: 12 Mar 2005 Posts: 34
|
thanks, i did find more info in the links.
Quote: |
Adjust the Maximum Sessions parameter on the MDB's listener port; this controls the maximum number of concurrent threads (JMSSessions) that are requested from the MDB thread pool for a given MDB listener. It thus limits the maximum number of parallel incoming message flows the MDB can handle. We cannot give you exact values because tuning this parameter is highly dependent on your hardware and configuration. Start with a value of 5 or 10, and experiment from there.
* On the ConnectionFactory definition, there is an Additional Properties section that includes an optional set of Session Pool settings. On the Session Pool settings, set the value of Max Connections to about double the number of the MDB Maximum Sessions. This is the Connection Manager's pool for the JMS Session resources created using that ConnectionFactory.
|
If I am following this correctly I should set the MDB listener port to max sessions of 10
then go to the corresponding QueueConnectionFactory and set the
Connection pool -> max conn -20
Session pool -> mac conn -10
- one last question, if you are expecting a heavy load, why not raise the sessions to like 250?
will that crash the system? and will putting he sessions too low make the queues back up too much?
thanks alot! |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jun 23, 2005 7:43 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Well you have to keep in mind that you might need to up the max channels (default either 100 or 200??) and or max connections...
Too few sessions and your queues will backup...
Too many you might use up too much of the resources on the box...
Enjoy  |
|
Back to top |
|
 |
|