Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-2662

ActiveMQEndpointWorker.stop() sometimes is needing many minutes to shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.3.0
    • 5.5.0
    • JCA Container
    • None
    • irrelevant

    Description

      On shutdowns the threads occasionally are waiting for a long time in ActiveMQEndpointWorker.stop() on the field ActiveMQEndpointWorker.shutdownMutex. The cause is that shutdownMutex is a string constant (initialization line is shutdownMutex = "shutdownMutex"), effectively making it a global lock.
      The hangs are happening especially on servers with high traffic.

      Attachments

        1. ActiveMQEndpointWorker.diff
          1 kB
          Jörg Waßmer

        Activity

          People

            gtully Gary Tully
            joerg.wassmer Jörg Waßmer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: