Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: MB-777
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Dejan Bosanac
Reporter: Jonathan Anstey
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
FUSE Message Broker

Memory leak in SimpleAuthenticationBroker

Created: 23/Nov/10 07:45 PM   Updated: 24/Nov/10 04:57 PM
Component/s: None
Affects Version/s: 5.4.1-fuse-01-00
Fix Version/s: 5.4.2-fuse-00-00

File Attachments: 1. XML File activemq.xml (5 kB)


External Issue URL: https://issues.apache.org/activemq/browse/AMQ-3052


 Description  « Hide
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


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Dejan Bosanac added a comment - 24/Nov/10 04:57 PM
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/