Bug 865563

Summary: Memory leak in stateless session when using CommandFactory.newBatchExecution and jBPM deps are on CP
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Petr Široký <psiroky>
Component: BRE (Expert, Fusion)Assignee: Mario Fusco <mfusco>
Status: CLOSED UPSTREAM QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.1   
Target Milestone: ER4   
Target Release: BRMS 5.3.1 GA   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:20:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Simple Maven based reproducer. none

Description Petr Široký 2012-10-11 18:46:55 UTC
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.
  

Actual results:
Memory consumption is raising.

Expected results:
Memory should me approximately same after each loop execution.

Additional info:

Comment 2 JBoss JIRA Server 2012-10-15 15:50:52 UTC
Mario Fusco <mario.fusco> updated the status of jira JBRULES-3655 to Resolved

Comment 3 JBoss JIRA Server 2012-10-15 15:50:52 UTC
Mario Fusco <mario.fusco> made a comment on jira JBRULES-3655

Fixed disposing the ksession after having executed a command on the stateless session

Comment 4 Mario Fusco 2012-10-15 15:58:50 UTC
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.

Comment 5 Petr Široký 2012-11-15 12:21:02 UTC
Verified fixed in 5.3.1-ER4.

Comment 12 Red Hat Bugzilla 2025-02-10 03:20:56 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.