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 » MQ/JMS Leaves Open Connections

Post new topic  Reply to topic
 MQ/JMS Leaves Open Connections « View previous topic :: View next topic » 
Author Message
MK8570
PostPosted: Fri Jul 20, 2007 6:23 am    Post subject: MQ/JMS Leaves Open Connections Reply with quote

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
    View user's profile Send private message
    Vitor
    PostPosted: Fri Jul 20, 2007 6:27 am    Post subject: Re: MQ/JMS Leaves Open Connections Reply with quote

    Grand High Poobah

    Joined: 11 Nov 2005
    Posts: 26093
    Location: Texas, USA

    MK8570 wrote:

    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&


    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
    View user's profile Send private message
    MK8570
    PostPosted: Fri Jul 20, 2007 6:44 am    Post subject: Reply with quote

    Apprentice

    Joined: 18 Jul 2007
    Posts: 26
    Location: PA, USA

    Yes, we are using MQ 5.3.1 CSD 12
    Back to top
    View user's profile Send private message
    MK8570
    PostPosted: Fri Jul 20, 2007 6:54 am    Post subject: Reply with quote

    Apprentice

    Joined: 18 Jul 2007
    Posts: 26
    Location: PA, USA

    Can you please explain the issue and a possible solution ?
    Back to top
    View user's profile Send private message
    jefflowrey
    PostPosted: Fri Jul 20, 2007 7:18 am    Post subject: Reply with quote

    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
    View user's profile Send private message
    MK8570
    PostPosted: Fri Jul 20, 2007 8:53 am    Post subject: Reply with quote

    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
    View user's profile Send private message
    fjb_saper
    PostPosted: Fri Jul 20, 2007 10:14 am    Post subject: Reply with quote

    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
    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 » MQ/JMS Leaves Open 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.