Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 54370 invoked from network); 15 Jan 2010 14:23:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jan 2010 14:23:07 -0000 Received: (qmail 13556 invoked by uid 500); 15 Jan 2010 14:23:07 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 13519 invoked by uid 500); 15 Jan 2010 14:23:07 -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 13359 invoked by uid 99); 15 Jan 2010 14:23:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2010 14:23:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2010 14:23:04 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8919E234C1F0 for ; Fri, 15 Jan 2010 06:22:43 -0800 (PST) Message-ID: <1128227730.2881263565363559.JavaMail.jira@brutus.apache.org> Date: Fri, 15 Jan 2010 14:22:43 +0000 (UTC) From: "Rob Davies (JIRA)" To: dev@activemq.apache.org Subject: [jira] Assigned: (AMQ-2568) Embedded broker not shutting down cleanly because of lingering threads In-Reply-To: <1416057131.1721263483403778.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rob Davies reassigned AMQ-2568: ------------------------------- Assignee: Rob Davies > Embedded broker not shutting down cleanly because of lingering threads > ---------------------------------------------------------------------- > > Key: AMQ-2568 > URL: https://issues.apache.org/activemq/browse/AMQ-2568 > Project: ActiveMQ > Issue Type: Bug > Components: Broker, JMX > Affects Versions: 5.3.0 > Environment: Windows > Reporter: Fred Moore > Assignee: Rob Davies > Fix For: 5.4.0 > > > See also this thread: http://mail-archives.apache.org/mod_mbox/activemq-users/201001.mbox/%3C4E50CAAD-0600-46FB-B5D0-B623C21A362D@gmail.com%3E > See also this bug: http://issues.apache.org/activemq/browse/AMQ-1214 > ======================== > we have a 5.3.0 embedded broker that refuses to shutdown cleanly because of lingering threads. A long time (dozens of seconds) after broker stop() is called, these threads are still active: > * [ActiveMQ Scheduler] (Daemon) Group: main > * [Timer-0] (Daemon) Group: main > We discovered that [ActiveMQ Scheduler] can be closed adding this snippet to our code: > Scheduler scheduler = Scheduler.getInstance(); > scheduler.shutdown(); > After doing this the other lingering thread -- "[Timer-0]" -- did not go away, but at least we discovered that this timer is JMX related: if we disable JMX connector the timer disappear. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.