[
https://issues.jboss.org/browse/DROOLS-498?page=com.atlassian.jira.plugin...
]
Davide Sottara commented on DROOLS-498:
---------------------------------------
Interesting.. when I tested it here, in your reproducer, it did remove the fact.
https://github.com/sotty/drools/commit/49da68315983c0b040d076402d2bc99f61...
It also worked with your reproducer, where did you put that line exactly?
Memory leak in stateful session after retracting facts
------------------------------------------------------
Key: DROOLS-498
URL:
https://issues.jboss.org/browse/DROOLS-498
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 6.0.1.Final
Reporter: Vitaly Lomov
Assignee: Mario Fusco
Priority: Critical
Attachments: gcRoot.png, memory-leak2.zip, screenshot1.png
After adding many simple facts into the stateful session and then removing them, the
factHandles for the removed facts are still referenced by the session. Eventually getting
"java.lang.OutOfMemoryError: GC overhead limit exceeded" with the stack trace
(sometimes) similar to DROOLS-411.
Someone on StackOverflow suggested iterating through whatever factHandles remain after
deletion and delete those, but I get no factHandles (correct, since I removed all facts).
See screenshot for objects in memory _after_ deleting all facts.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)