Author |
Message
|
MK8570 |
Posted: Fri Jul 20, 2007 6:23 am Post subject: MQ/JMS Leaves Open Connections |
|
|
Apprentice
Joined: 18 Jul 2007 Posts: 26 Location: PA, USA
|
We are using Biz Link that uses JMS to put messages onto MQ.
We are using ICF
com.ibm.mq.jms.context.WMQInitialContextFactory
and PROVIDER_URL=mbens39.domian.com:1414/TAQ12.CONN1
From the MQ side I see that after every message 3 connections are opened and than 2 are closed leaving 1 connection Open.
I see there was a similar issue discussed on this forum but i don't see any resolution.
http://www.mqseries.net/phpBB2/viewtopic.php?p=99146&
Any help will be greatly appreciated.
|
|
Back to top |
|
 |
Vitor |
Posted: Fri Jul 20, 2007 6:27 am Post subject: Re: MQ/JMS Leaves Open Connections |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
That thread's 2 years old! What version of MQ are you using? If you've got JMS you should be on v5.3.11 as a minimum; previous ones had some issues with their Java support. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
MK8570 |
Posted: Fri Jul 20, 2007 6:44 am Post subject: |
|
|
Apprentice
Joined: 18 Jul 2007 Posts: 26 Location: PA, USA
|
Yes, we are using MQ 5.3.1 CSD 12 |
|
Back to top |
|
 |
MK8570 |
Posted: Fri Jul 20, 2007 6:54 am Post subject: |
|
|
Apprentice
Joined: 18 Jul 2007 Posts: 26 Location: PA, USA
|
Can you please explain the issue and a possible solution ? |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Jul 20, 2007 7:18 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It's not clear what your issue is, so it's not clear what you want explained.
Is it the problem that there is always one open connection? Or is it the problem that there is always one more open connection?
How are you using JMS? Outside an app server? Are you using connection pooling? Are you sure your code is not at fault? Why? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
MK8570 |
Posted: Fri Jul 20, 2007 8:53 am Post subject: |
|
|
Apprentice
Joined: 18 Jul 2007 Posts: 26 Location: PA, USA
|
The Problem is that with every message I see 3 connection getting opened and later 2 gets closed.
So this leaves 1 new connection with every message that is put in the MQ. and After few messages (50 or so ) we reach the max limit for open connections.
We are using JMS outside of App Server. I do not have access to the Vendor Code, but Vendor is sure that they don't have problems with the code.
We do use connection pooling . |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jul 20, 2007 10:14 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
MK8570 wrote: |
The Problem is that with every message I see 3 connection getting opened and later 2 gets closed.
So this leaves 1 new connection with every message that is put in the MQ. and After few messages (50 or so ) we reach the max limit for open connections.
We are using JMS outside of App Server. I do not have access to the Vendor Code, but Vendor is sure that they don't have problems with the code.
We do use connection pooling . |
How do you use connection pooling outside of a J2EE application server? Did you write the pools yourselves?
The app or pool is not closing connections correctly.
Not having problems with the code and closing connections properly is not the same thing.
I'd suspect transactionality problems and missing explicit transaction handling.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|