[rules-users] Best practice to use heap memory effectively

mohan mohan.narangoda at gmail.com
Thu Nov 1 16:15:15 EDT 2012


Let's assume we need to calculate number of Alarm facts/events inserted into
WM over particular day. We will keep on adding facts throughout the day. If
this count greater than threshold let’s notify somebody.  Also we will
retract facts/events which are older than 24 hours. 
Can we handle this situation without single static StatefulKnowledgeSession? 

Simply can we count number of facts/events in a WM in a particular time
using multiple session? So I can call session.dispose() after each
insertion.



--
View this message in context: http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effectively-tp4020194p4020656.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list