Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 24487 invoked from network); 19 Jan 2010 16:25:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jan 2010 16:25:43 -0000 Received: (qmail 78359 invoked by uid 500); 19 Jan 2010 16:25:42 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 78336 invoked by uid 500); 19 Jan 2010 16:25:42 -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 78322 invoked by uid 99); 19 Jan 2010 16:25:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2010 16:25:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2010 16:25:33 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NXGtF-000147-0u for users@activemq.apache.org; Tue, 19 Jan 2010 08:25:13 -0800 Message-ID: <27228469.post@talk.nabble.com> Date: Tue, 19 Jan 2010 08:25:13 -0800 (PST) From: moreno9000 To: users@activemq.apache.org Subject: Re: Thread for each client In-Reply-To: <44114721-397D-4778-944E-989AF4AB573C@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: moreno.mauri@italtel.it References: <27126558.post@talk.nabble.com> <27223897.post@talk.nabble.com> <44114721-397D-4778-944E-989AF4AB573C@gmail.com> Hi rajdavies, I see a lot of threads like this one: "JMX server connection timeout 6925" daemon prio=10 tid=0x08faf000 nid=0x2759 in Object.wait() [0xac0ae000..0xac0af130] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0xd5fcec60> (a [I) at com.sun.jmx.remote.internal.ServerCommunicatorAdmin$Timeout.run(Unknown Source) - locked <0xd5fcec60> (a [I) at java.lang.Thread.run(Unknown Source) Thanks Moreno rajdavies wrote: > > Hi moreno, > > can you take a stack trace of the broker ? - the threads should be > getting garbage collected > > thanks, > > Rob > On 19 Jan 2010, at 10:37, moreno9000 wrote: > >> >> I confirm Marcin's problem (with AMQ 5.3). >> >> One producer (java application with transport=openwire) >> For each message producer open a Connection, send a msg, close the >> Connection. >> >> Server side no problem for what concern file descriptors opened, >> memory usage, socket opened (with netstat I see all conn=ESTABLISHED). >> >> Problems with threads. >> >> A new thread is created (inside AMQ) for every producer's open-send- >> close. >> Threads don't disappear even if producer call connection.close() >> (they disappear after 20-30 seconds from producer's death). >> >> In activemq.xml I set producerFlowControl=false, >> transport.closeAsync=false. >> >> AMQ run with these options: >> -Xmx1024M, -Dorg.apache.activemq.UseDedicatedTaskRunner=false. >> >> Producer set jms.useAsyncSend=false. >> >> Are there other configurations I can try to stop thread's increment? >> >> Many thanks >> Moreno >> >> >> >> >> marcin80 wrote: >>> >>> Hi, >>> >>> I'm using ActiveMQ 5.2 and I've noticed thad ActiveMQ create new >>> thread >>> for every connection but even the client will disconnect its thread >>> still >>> alive (state RUNNABLE). It is ActiveMQ normal behavior? >>> Can I change this? I would like to finalize thread if client will >>> dissconnect. >>> >>> Cheers, >>> Marcin >>> >> >> -- >> View this message in context: >> http://old.nabble.com/Thread-for-each-client-tp27126558p27223897.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> > > Rob Davies > http://twitter.com/rajdavies > I work here: http://fusesource.com > My Blog: http://rajdavies.blogspot.com/ > I'm writing this: http://www.manning.com/snyder/ > > > > > > > -- View this message in context: http://old.nabble.com/Thread-for-each-client-tp27126558p27228469.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.