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 08BAB1083F for ; Tue, 18 Jun 2013 05:22:26 +0000 (UTC) Received: (qmail 7816 invoked by uid 500); 18 Jun 2013 05:22:20 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 7774 invoked by uid 500); 18 Jun 2013 05:22:10 -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 7744 invoked by uid 99); 18 Jun 2013 05:22:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jun 2013 05:22:07 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jswqne@163.com designates 220.181.13.144 as permitted sender) Received: from [220.181.13.144] (HELO m13-144.163.com) (220.181.13.144) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jun 2013 05:22:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Subject:In-Reply-To: References:Content-Type:MIME-Version:Message-ID; bh=ex5IOpkJ4ny9 pqf8hxJZ1dPEIz41DkxWwbLzPp08qX0=; b=SH0+OMIAjY7Bg6QS3nELRmBcSpC+ 8AmmJvGiO7g6g0q5j1ZJaW/X6/vrLzYIHFu/ScmwBzY3goqlwA4O7xEVb/Yasnar 9p0rUqvM02FExWkxikgU9qAnkaYlTQd/Elnn2Z8fIa383g/4LZmDN82m4KfSlMqi MG1wP1ufZGKTVSI= Received: from jswqne$163.com ( [115.238.89.201] ) by ajax-webmail-wmsvr144 (Coremail) ; Tue, 18 Jun 2013 13:21:33 +0800 (CST) X-Originating-IP: [115.238.89.201] Date: Tue, 18 Jun 2013 13:21:33 +0800 (CST) From: lzr To: users@activemq.apache.org Subject: Re:Re: Thread leak in Activemq 5.6 X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20130424(22035.5339.5325) Copyright (c) 2002-2013 www.mailtech.cn 163com In-Reply-To: References: <1370893741985-4668062.post@n4.nabble.com> <1371171504822-4668198.post@n4.nabble.com> <15be921c.1dafb.13f410e0015.Coremail.jswqne@163.com> <7c59c171.ed0d.13f4c0680cb.Coremail.jswqne@163.com> X-CM-CTRLDATA: C9UG+GZvb3Rlcl9odG09OTM3Nzo4MQ== Content-Type: multipart/alternative; boundary="----=_Part_456513_964817679.1371532893984" MIME-Version: 1.0 Message-ID: <3a81b53e.1e40c.13f55bb1f20.Coremail.jswqne@163.com> X-CM-TRANSID: kMGowECZIEBf7r9RiTh+AA--.3396W X-CM-SenderInfo: pmvz10rh6rljoofrz/xtbB0h5Al1D+dkO5cAAAsJ X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_456513_964817679.1371532893984 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit Thanks a lot for the checking. Please kindly let me know if any updates. At 2013-06-17 23:23:24,"Christian Posta" wrote: >Yah, I can verify this is the case. Threads leak because the >threadpoolexecutor doesn't evict the threads. Checking for the best >solution to this. > > >On Sun, Jun 16, 2013 at 4:07 AM, lzr wrote: > >> Dear all, >> >> >> I found a thread leak issue during try activemq 5.6: >> I create connection when sending message and close it once the sending >> finished. >> Occassionally I restart activemq broker and found one thread generated >> with name "ActiveMQ Connection Executor...". >> For deep research, I restarted the broker several times and same number >> thread generated; I attached the picture of my debug. >> Could anybody give me some clues? I just want to know if this is a bug for >> ActiveMQ. The attachments includes my applications and the debugging >> pictures. >> >> >> It would be much appreciated if you make any suggestion!!! >> >> >> Thanks in advance, >> Zhuran Li >> >> >> >> >> >> >> >> >> At 2013-06-14 23:03:55,"Christian Posta" >> wrote: >> >Would need to be able to re-create this... Please put together a unit test >> >that reproduces this. >> > >> > >> >On Fri, Jun 14, 2013 at 1:00 AM, lzr wrote: >> > >> >> Dear all, >> >> >> >> >> >> I'm using Acitvemq 5.6 with my app and struggling to handle the >> following >> >> Exception: >> >> 2013-06-13 09:53:46,018 | WARN | Send failed for: ActiveMQObjectMessage >> >> {commandId = 6, responseRequired = false, messageId = >> >> ID:nfsnnc02-46547-1370842535042-0:547519:1:1:1, originalDestination = >> null, >> >> originalTransactionId = null, producerId = >> >> ID:nfsnnc02-46547-1370842535042-0:547519:1:1, destination = >> >> queue://10408_base, transactionId = >> >> TX:ID:nfsnnc02-46547-1370842535042-0:547519:1, expiration = 0, >> timestamp = >> >> 1371088670829, arrival = 0, brokerInTime = 1371088426003, brokerOutTime >> = >> >> 0, correlationId = null, replyTo = null, persistent = true, type = null, >> >> priority = 4, groupID = null, groupSequence = 0, targetConsumerId = >> null, >> >> compressed = false, userID = null, content = >> >> org.apache.activemq.util.ByteSequence@c4b67b, marshalledProperties = >> >> org.apache.activemq.util.ByteSequence@a84ac2, dataStructure = null, >> >> redeliveryCounter = 0, size = 0, properties = {createtime=2013-06-13 >> >> 09:57:50, datasize=1, syncflag=bd_defdoc}, readOnlyProperties = false, >> >> readOnlyBody = false, droppable = fals >> >> e}, missing producer state for: >> >> org.apache.activemq.broker.ProducerBrokerExchange@c44470 | >> >> org.apache.activemq.broker.region.Queue | ActiveMQ Transport: tcp:/// >> >> 10.1.100.66:64118 >> >> 2013-06-13 09:53:46,018 | WARN | Async error occurred: >> >> javax.jms.JMSException: Cannot send message to queue://10408_base with >> >> invalid (null) producer state | >> >> org.apache.activemq.broker.TransportConnection.Service | ActiveMQ >> >> Transport: tcp:///10.1.100.66:64118 >> >> javax.jms.JMSException: Cannot send message to queue://10408_base with >> >> invalid (null) producer state >> >> at org.apache.activemq.broker.region.Queue.send(Queue.java:589) >> >> at >> >> >> org.apache.activemq.broker.region.AbstractRegion.send(AbstractRegion.java:407) >> >> at >> >> >> org.apache.activemq.broker.region.RegionBroker.send(RegionBroker.java:503) >> >> at >> >> >> org.apache.activemq.broker.jmx.ManagedRegionBroker.send(ManagedRegionBroker.java:305) >> >> at org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:129) >> >> at >> >> >> org.apache.activemq.broker.CompositeDestinationBroker.send(CompositeDestinationBroker.java:96) >> >> at >> >> >> org.apache.activemq.broker.TransactionBroker.send(TransactionBroker.java:306) >> >> at >> >> >> org.apache.activemq.broker.MutableBrokerFilter.send(MutableBrokerFilter.java:135) >> >> at >> >> >> org.apache.activemq.broker.TransportConnection.processMessage(TransportConnection.java:453) >> >> at >> >> >> org.apache.activemq.command.ActiveMQMessage.visit(ActiveMQMessage.java:681) >> >> at >> >> >> org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:292) >> >> at >> >> >> org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:150) >> >> at >> >> >> org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50) >> >> at >> >> >> org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113) >> >> at >> >> >> org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:229) >> >> at >> >> >> org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83) >> >> at >> >> >> org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:222) >> >> at >> >> >> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:204) >> >> at java.lang.Thread.run(Thread.java:619) >> >> >> >> >> >> Could anybody give me some clue? It would be much appreciated if any >> >> questions. >> >> >> >> >> >> Thanks a lot, >> >> Zhuran Li >> > >> > >> > >> > >> >-- >> >*Christian Posta* >> >http://www.christianposta.com/blog >> >twitter: @christianposta >> > > > >-- >*Christian Posta* >http://www.christianposta.com/blog >twitter: @christianposta ------=_Part_456513_964817679.1371532893984--