JBRMS has memory leak for RuleAgent url access
----------------------------------------------
Key: JBRULES-1919
URL:
https://jira.jboss.org/jira/browse/JBRULES-1919
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-guvnor
Affects Versions: 4.0.7
Environment: Solaris, JBOSS server and Glassfish 9
Reporter: Richard Ambridge
Assignee: Mark Proctor
Drools JBRMS has a memory leak when the RulesAgent accesses the BRMS to check the status
of a snapshot.
If a RuleAgent is configured with
url=http://localhost:8080/.../package/NAME/SNAPSHOT
poll=60
then the memory usage in the VM will increase until eventually it runs out of memory.
This can be observed using jconsole.
The problem lies in
drools-jbrms
org.drools.brms.server.files.FileManagerUtils.java
This creates a Seam EVENT each time the RuleAgent accesses the GUI,
the EVENT is only in context for the event, so it creates a RulesRepository during
creation,
but it never releases the RulesRepository so a session is left open, and the Event cannot
be GC.
Fix is
46d45
< import org.jboss.seam.annotations.Destroy;
64,67d62
< @Destroy
< public void close(){
< repository.logout();
< }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira