Red Hat Bugzilla – Bug 865563
Memory leak in stateless session when using CommandFactory.newBatchExecution and jBPM deps are on CP
Last modified: 2013-10-10 20:09:12 EDT
Created attachment 625653 [details]
Simple Maven based reproducer.
Description of problem:
Using CommandFactory.newInsertElements() together with stateless knowledge session results in memory leak _when_ jBPM dependencies are on classpath.
Without jBPM dependencies memory leak is gone.
This issue is very similar to bug 734367. In fact one the comments in that BZ is referring exactly to this bug. Its https://bugzilla.redhat.com/show_bug.cgi?id=734367#c4
Version-Release number of selected component (if applicable):
5.3.1-ER3 and earlier.
Steps to Reproduce:
1. Download and run (mvn test) attached Maven based reproducer.
2. See the output that says how much heap memory is currently used.
Memory consumption is raising.
Memory should me approximately same after each loop execution.
Mario Fusco <firstname.lastname@example.org> updated the status of jira JBRULES-3655 to Resolved
Mario Fusco <email@example.com> made a comment on jira JBRULES-3655
Fixed disposing the ksession after having executed a command on the stateless session
I fixed it on the master and backported on the 5.5.x and 5.4.x branches.
I am waiting for the acknowledgement to backport on the 5.3.x one too.
Verified fixed in 5.3.1-ER4.