[jboss-jira] [JBoss JIRA] (DROOLS-1233) Memory references to removed facts are retained for certain rules
Tibor Zimányi (JIRA)
issues at jboss.org
Wed Jul 11 09:13:00 EDT 2018
[ https://issues.jboss.org/browse/DROOLS-1233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tibor Zimányi closed DROOLS-1233.
---------------------------------
Resolution: Duplicate Issue
Closing this as it is marked as a duplicate.
> Memory references to removed facts are retained for certain rules
> -----------------------------------------------------------------
>
> Key: DROOLS-1233
> URL: https://issues.jboss.org/browse/DROOLS-1233
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.4.0.Final
> Reporter: Jon Kranes
> Assignee: Mario Fusco
> Attachments: drools-memory-test.zip, gc-root.jpg, gc-root.tiff, heap-dump.jpg, heap-dump.tiff
>
>
> Given a simple rule of a specific pattern, Drools maintains references in a stateful session to fact objects even after the facts have been withdrawn from working memory.
> For example, given the following rule:
> {code}
> rule "TestRule"
> when
> $tc : TestClass()
> not TestClass2(name == $tc.name)
> then
> insert(new TestClass2($tc.getName()));
> end
> {code}
> Drools will maintain an internal reference to instances of TestClass even after they have been explicitly deleted from the session.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list