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


See also this thread: 
http://mail-archives.apache.org/mod_mbox/activemq-users/201001.mbox/%[email protected]%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.

Reply via email to