Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 29027 invoked from network); 19 Jan 2010 16:34:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jan 2010 16:34:34 -0000 Received: (qmail 90408 invoked by uid 500); 19 Jan 2010 16:34:34 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 90336 invoked by uid 500); 19 Jan 2010 16:34:34 -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 90326 invoked by uid 99); 19 Jan 2010 16:34:34 -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:34:34 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajdavies@gmail.com designates 72.14.220.155 as permitted sender) Received: from [72.14.220.155] (HELO fg-out-1718.google.com) (72.14.220.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2010 16:34:24 +0000 Received: by fg-out-1718.google.com with SMTP id e21so216570fga.14 for ; Tue, 19 Jan 2010 08:34:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=nTR5LMyG/NvZH+uHheEDDfVPLg19t7rFlUWlZHcpHuc=; b=Sz0A57fXdq0zylp9CXpG677+qoEiN0RQegCoGDqexu8B4aC4l6LmMxlM26IVLH/w9J EE9T9iQXoC+EgD7A54ISNCX4CmNa4Q3jWtXXHPw1PCmgHRRvSlORSC3wdUfVdGQsnRGF 6r2bMApj7rQV5X5Zy6vlBXVGoAX1FJOEHdjFY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=Y3wsRIAQnl1jWtUjGCDvEiW2tCxiy+KJi//W9ojtNDI9YipGFXZOoxFkjG6Nyp5+iY zoVK7E5fpK5xuUwgksfJdhtvg9YixbuDwtGv8QI/2fW09eWhKHQpKGYiA5vkR6MO5z63 rDlnIiw1VVhoXAvdAgxFqIE6Qv/yky7SSoeoE= Received: by 10.87.47.37 with SMTP id z37mr10326326fgj.9.1263918843111; Tue, 19 Jan 2010 08:34:03 -0800 (PST) Received: from ?192.168.1.164? ([86.134.136.157]) by mx.google.com with ESMTPS id 16sm2624577fxm.12.2010.01.19.08.34.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 19 Jan 2010 08:34:02 -0800 (PST) Message-Id: <1A806507-2C9D-4029-B07F-2D5A3D1EB23F@gmail.com> From: Rob Davies To: users@activemq.apache.org In-Reply-To: <27228469.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Thread for each client Date: Tue, 19 Jan 2010 16:33:56 +0000 References: <27126558.post@talk.nabble.com> <27223897.post@talk.nabble.com> <44114721-397D-4778-944E-989AF4AB573C@gmail.com> <27228469.post@talk.nabble.com> X-Mailer: Apple Mail (2.936) that'll be the jmx implementation - which is part of the JRE - can you run with out jmx ? On 19 Jan 2010, at 16:25, moreno9000 wrote: > > 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. > 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/