Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EE8A8116D2 for ; Thu, 4 Sep 2014 21:44:25 +0000 (UTC) Received: (qmail 54465 invoked by uid 500); 4 Sep 2014 21:44:25 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 54386 invoked by uid 500); 4 Sep 2014 21:44:25 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 54248 invoked by uid 99); 4 Sep 2014 21:44:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Sep 2014 21:44:25 +0000 Date: Thu, 4 Sep 2014 21:44:25 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQ-5343) org.apache.activemq.thread.PooledTaskRunner.shutdown Waiting state MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-5343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14122021#comment-14122021 ] Timothy Bish commented on AMQ-5343: ----------------------------------- A unit test to reproduce this will help anyone that investigates it. > org.apache.activemq.thread.PooledTaskRunner.shutdown Waiting state > ------------------------------------------------------------------ > > Key: AMQ-5343 > URL: https://issues.apache.org/jira/browse/AMQ-5343 > Project: ActiveMQ > Issue Type: Bug > Components: JMS client > Affects Versions: 5.10.0 > Reporter: Mohit Anchlia > > I am using a framework with async request/response pattern where I cache session and connections. I also cache temp queue destination and use it with future to get the response. The problem seems to be when I try to close the connection I see threads are waiting forever: > "pool-2-thread-9" prio=10 tid=0x00007f76843f4800 nid=0xadb in Object.wait() [0x00007f765194d000] > java.lang.Thread.State: WAITING (on object monitor) > at java.lang.Object.wait(Native Method) > at org.apache.activemq.thread.PooledTaskRunner.shutdown(PooledTaskRunner.java:104) > - locked <0x00000000950ddca8> (a org.apache.activemq.thread.PooledTaskRunner$1) > at org.apache.activemq.thread.PooledTaskRunner.shutdown(PooledTaskRunner.java:112) > at org.apache.activemq.ActiveMQSessionExecutor.stop(ActiveMQSessionExecutor.java:152) > - locked <0x0000000094f1ae10> (a org.apache.activemq.ActiveMQSessionExecutor) > at org.apache.activemq.ActiveMQSession.dispose(ActiveMQSession.java:720) > - locked <0x00000000950c89f8> (a org.apache.activemq.ActiveMQSession) > at org.apache.activemq.ActiveMQSession.doClose(ActiveMQSession.java:656) > at org.apache.activemq.ActiveMQSession.close(ActiveMQSession.java:649) > at com.sony.am.snei.stress.async.jms.JMSClient.cleanUp(JMSClient.java:172) > at com.sony.am.snei.stress.command.FDBIdentityAndAccessCommand.doWrite(FDBIdentityAndAccessCommand.java:142) > at com.sony.am.snei.stress.command.FDBIdentityAndAccessCommand.call(FDBIdentityAndAccessCommand.java:46) > at com.sony.am.snei.stress.command.FDBIdentityAndAccessCommand.call(FDBIdentityAndAccessCommand.java:22) > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) -- This message was sent by Atlassian JIRA (v6.3.4#6332)