1. ActiveMQ
  2. AMQ-2320

Session are not deleted when several processes terminate simultaneously in a "network of broker" complex configuration


    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.x
    • Component/s: Broker
    • Labels:
    • Environment:

      Linux Redhat. JVM 1.6. AMQ 5.2


      I would like to add a schema. I hope I will be able to add it later. I don't see it

      I have 3 processes with one embedded broker (BSV, client, server) in the same network of brokers (non duplex but bi-directionnal).
      I have a fourth standalone broker
      My "client" and my "server" process are connected a second time with a "manual" tcp connection to the BSV process.
      My "client" and my "server" process are connected a third time with a "manual" tcp connection on the standalone broker.

      In this case, if my process BSV is stopped by an interrupt (CTRL-C) (which closes the embedded connection, and the embedded broker), and if simultaneously, I want to stop gracefully my "client" process (close all session, close all "manual" connection, stop embedded broker), one session thread stays up and never terminates

      "ActiveMQ Session:" prio=10 tid=0x000000000e83a400 nid=0x5749 in Object.wait() [0x00000000469c8000..0x00000000469c8d10]
      java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)

      • waiting on <0x00002aaaca868380> (a java.lang.Object)
        at java.lang.Object.wait(
        at org.apache.activemq.thread.DedicatedTaskRunner.runTask(
      • locked <0x00002aaaca868380> (a java.lang.Object)
        at org.apache.activemq.thread.DedicatedTaskRunner$

      It is a session associated with the BSV link (I don't know if it is a session associated with the network of broker, or a session associated with my manual connection)

      A CTRL-C on the process terminates the process

      It doesn't happen if stop are not simultaneously done.


      1. screenshot-1.jpg
        320 kB
      2. Pb AMQ Session.JPG
        49 kB


        Eric created issue -
        Eric made changes -
        Field Original Value New Value
        Attachment Pb AMQ Session.JPG [ 18189 ]
        Eric made changes -
        Attachment screenshot-1.jpg [ 18225 ]
        Rob Davies made changes -
        Fix Version/s 5.4.1 [ 12332 ]
        Bruce Snyder made changes -
        Fix Version/s 5.4.1 [ 12332 ]
        Fix Version/s 5.5.0 [ 12344 ]
        Jeff Turner made changes -
        Project Import Fri Nov 26 22:32:02 EST 2010 [ 1290828722158 ]
        Dejan Bosanac made changes -
        Fix Version/s 5.5.0 [ 12315626 ]
        Fix Version/s 5.4.2 [ 12315625 ]
        Gary Tully made changes -
        Fix Version/s 5.6.0 [ 12316331 ]
        Fix Version/s 5.5.0 [ 12315626 ]
        Timothy Bish made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Incomplete [ 4 ]


          • Assignee:
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created: