Uploaded image for project: 'FUSE Message Broker'
  1. FUSE Message Broker
  2. MB-777

Memory leak in SimpleAuthenticationBroker

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.4.1-fuse-01-00
    • Fix Version/s: 5.4.2-fuse-00-00
    • Component/s: None
    • Labels:
      None

      Description

      1. Grab the test case in PROD-468.
      2. Modify the connection factory in the Spring beans file to point to a local broker (say localhost:61616).
      3. Load up MB 5.4.1-fuse-01-00 with the attached activemq.xml
      4. Run the PROD-468 test case with

      mvn clean compile exec:java -Dexec.mainClass=Main

      5. Watch as the SimpleAuthenticationBroker accumulates memory. In the test case it does this very slowly, but in production scenarios it can grow much faster (800+MB in PROD-468). jmap shows 8448 instances after a few dozen minutes:

      janstey@mojo:~$ jmap -histo <amq-pid> | grep SimpleAuthenticationBroker
        80:           264           8448  org.apache.activemq.security.SimpleAuthenticationBroker$2
       608:             1             40  org.apache.activemq.security.SimpleAuthenticationBroker

        Gliffy Diagrams

          Activity

          Hide
          dbosanac Dejan Bosanac added a comment -

          This should be fixed and available in the latest snapshot (20101124.161449-35) available at

          http://repo.fusesource.com/nexus/content/repositories/snapshots/org/apache/activemq/apache-activemq/5.4.1-fuse-SNAPSHOT/

          Show
          dbosanac Dejan Bosanac added a comment - This should be fixed and available in the latest snapshot (20101124.161449-35) available at http://repo.fusesource.com/nexus/content/repositories/snapshots/org/apache/activemq/apache-activemq/5.4.1-fuse-SNAPSHOT/

            People

            • Assignee:
              dbosanac Dejan Bosanac
              Reporter:
              janstey Jonathan Anstey
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: