[jboss-jira] [JBoss JIRA] (DROOLS-1233) Memory references to removed facts are retained for certain rules

Jon Kranes (JIRA) issues at jboss.org
Wed Jul 20 16:43:00 EDT 2016


Jon Kranes created DROOLS-1233:
----------------------------------

             Summary: 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.tiff, 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
(v6.4.11#64026)


More information about the jboss-jira mailing list