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

Topics leaked in DestinationMapNode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.1
    • 4.1.2
    • Broker
    • None
    • activemq from svn branch 4.1
      Standalone broker running with JDBC persistence and no journal

    • Patch Available

    Description

      DestinationMapNode removeAll method is not erasing the given Topic from all the anyChild nodes it should. This leads to severe memory leaks in situations where a lot of advisory topics are created (i.e. working with temporary queues).

      As this effect is not found in the trunk, I've found that the related code was heavily changed in r478324. So, I've backported that changes (related with AMQ-1068) to 4.1 branch. I had to make some additional changes to make the DestinationMapNode class honour the contract if the new DestinationNode interface as needed for java 1.4.

      I'm attaching the patch.

      Attachments

        Activity

          People

            jlim Jonas B. Lim
            mteira Manuel Teira Paz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: