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

Wolfgang Laun wolfgang.laun at gmail.com
Thu Nov 1 16:43:08 EDT 2012


Are the 24 hour intervals fixed, i.e., from 0:00 to 24:00?  In this
case simply counting them is sufficient. You need rules at all.

-W


On 01/11/2012, mohan <mohan.narangoda at gmail.com> wrote:
> 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.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list