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 3184A72CA for ; Thu, 28 Jul 2011 13:35:33 +0000 (UTC) Received: (qmail 1771 invoked by uid 500); 28 Jul 2011 13:35:32 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 1336 invoked by uid 500); 28 Jul 2011 13:35:31 -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 1315 invoked by uid 99); 28 Jul 2011 13:35:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2011 13:35:31 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2011 13:35:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DCC688F1F5 for ; Thu, 28 Jul 2011 13:35:09 +0000 (UTC) Date: Thu, 28 Jul 2011 13:35:09 +0000 (UTC) From: "Robert Elliot (JIRA)" To: dev@activemq.apache.org Message-ID: <1560868324.15586.1311860109900.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (AMQ-3421) Deadlock when queue fills up MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Deadlock when queue fills up ---------------------------- Key: AMQ-3421 URL: https://issues.apache.org/jira/browse/AMQ-3421 Project: ActiveMQ Issue Type: Bug Affects Versions: 5.5.0 Environment: Tomcat 6.0.29, Spring 3.0.5, Oracle Java 6, Centos 5 Reporter: Robert Elliot Priority: Critical We are running a queue to do asynch audit updates, configured via Spring 3.0.5. When the queue fills up Tomcat locks up with all catalina threads waiting on an object monitor in Spring. This object monitor is held by the "ActiveMQ Connection Executor: vm://localhost#2986" thread which is itself blocked for ever awaiting the stopped CountDownLatch at TransportConnection.stop(TransportConnection.java:930). There are no "ActiveMQ Task" threads running, which suggests that either the task created by stopAsync has completed or did not run. A code review leaves us baffled as to how this latch cannot have counted down, but it hasn't. Could Tomcat possibly be silently discarding the thread that was meant to do the stop without throwing an exception?! It seems unlikely but (as I understand it) TaskRunnerFactory is breaking the Servlet spec by running up its own Threads. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira