I am inserting a high volume of relatively large objects into a long-running
StatefulKnowledgeSession in Stream mode.  I use a rule to start a jbpm
process when each event is received, and the last step retracts the event. 
I assumed these were all being garbage collected until my app server started
running out of memory.  I ran a profiler and saw that none of my event
objects were ever collected.

Is there any way of freeing references without disposing the working memory? 
This is not a good option for our app.  I have read this post 
http://drools.46999.n3.nabble.com/Removing-facts-from-statefulknowledgeSession-s-memory-td1875795.html#a1881799
Removing-facts-from-statefulknowledgeSession-s-memory  and several others,
but my objects are all manually retracted.  I just need to make them
available for garbage collection.  

I am running drools 5.2.0 Final, guvnor 5.2.0 Final, and jbpm 5.1.0 Final
and I am using the BusinessRulesProcessor action in jboss to insert events.

Thanks,
John

--
View this message in context: 
http://drools.46999.n3.nabble.com/Are-retracted-events-garbage-collected-in-stateful-session-tp3393695p3393695.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to