Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CBF54F942 for ; Tue, 30 Apr 2013 22:01:19 +0000 (UTC) Received: (qmail 26382 invoked by uid 500); 30 Apr 2013 22:01:19 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 26286 invoked by uid 500); 30 Apr 2013 22:01:19 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 26277 invoked by uid 99); 30 Apr 2013 22:01:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 22:01:19 +0000 X-ASF-Spam-Status: No, hits=4.2 required=5.0 tests=HTML_MESSAGE,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: encountered temporary error during SPF processing of domain of anouska.streets@gmail.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 22:01:13 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UXIbA-0000lh-Ho for users@activemq.apache.org; Tue, 30 Apr 2013 15:00:32 -0700 Date: Tue, 30 Apr 2013 15:00:32 -0700 (PDT) From: ElwoodJones To: users@activemq.apache.org Message-ID: In-Reply-To: References: <1367324523166-4666456.post@n4.nabble.com> Subject: Re: ActiveMQ and Camel Polling Consumer Thread Leak MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_198911_29829849.1367359232547" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_198911_29829849.1367359232547 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Yeah, thanks, I'll do that tomorrow, however after some work today I'm pretty sure this is a camel issue rather than activemq. When I replace the use of the Camel consumer template with the spring JmsTemplate the problem goes away. Cheers On 30 Apr 2013 15:47, "ceposta [via ActiveMQ]" < ml-node+s2283324n4666461h73@n4.nabble.com> wrote: > Want to wrap this up into a test case so I can look at it on my side? > > > On Tue, Apr 30, 2013 at 5:22 AM, ElwoodJones <[hidden email]>wrote: > > > > Hi There, > > > > I've been banging my head against an issue for a while now. I have a JCA > > that picks messages up from a tcp socket, puts them onto a queue and > then a > > consumer within the same JCA consumes them based upon a selector as > below: > > > > Exchange receive = > > > > > consumer.receive("activemq:queue:testQueue.response?selector=JMSCorrelationID > > > = '" + returnQueue + "'"", > > responseTimeout); > > TestMessage response = receive == null ? null : > > (TestMessage)receive.getIn().getBody(); > > consumer.doneUoW(receive); > > > > The issue I have is that everytime this runs it leaves a TCP Transport > and > > ActiveMQ Connection Thread behind, as you can imagine after a while > running > > at peak load I get OutOfMemoryExceptions due to the number of running > > threads. > > > > I am using the Camel ConsumerTemplate, this is set in my Spring config > as > > follows: > > > > > xmlns="http://camel.apache.org/schema/spring"> > > > >