Re: [rules-users] Lots of org.drools.common.ScheduledAgendaItem instances in memory

2012-05-29 Thread Werner Stoop
Hi Wolfgang, Thank you for your help. This sounds like a much better idea than what I have at the moment. I'll have to read up on queries in Drools first, though, because I've never used them before. On Tue, May 29, 2012 at 12:21 PM, Wolfgang Laun wrote: > For this kind of clean-up (to get rid

Re: [rules-users] Lots of org.drools.common.ScheduledAgendaItem instances in memory

2012-05-29 Thread Wolfgang Laun
For this kind of clean-up (to get rid of events that have been around for 24h plus) you can insert a single event, let's call it EveryHour, and write a rule with a timer, to fire timer(int: 1h 1h). (If this is too coarse, use 15m 15 or whatever.) On the RHS, run a query to select all that you want

Re: [rules-users] Lots of org.drools.common.ScheduledAgendaItem instances in memory

2012-05-29 Thread Werner Stoop
Thanks Wolfgang, Yes, we do have a lot of events/hour, because it is a complex network we're monitoring. Our system has been running for some time, but the Drools rules engine is a new addition to attempt to manage some of the complexity. Perhaps I should clarify events and alarms: Our main syste

Re: [rules-users] Lots of org.drools.common.ScheduledAgendaItem instances in memory

2012-05-29 Thread Wolfgang Laun
On 29/05/2012, Werner Stoop wrote: > Hi, thank you for your response. > > We use Drools 5.3.1 through Maven. When I invoke Drools, for each event I > receive I do the following: > > ksession.insert(obj); > ksession.fireAllRules(); > This is OK. > > Yes, we do use timers. In one case we want t

Re: [rules-users] Lots of org.drools.common.ScheduledAgendaItem instances in memory

2012-05-28 Thread Werner Stoop
Hi, thank you for your response. We use Drools 5.3.1 through Maven. When I invoke Drools, for each event I receive I do the following: ksession.insert(obj); ksession.fireAllRules(); where ksession was previously created through kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addK

Re: [rules-users] Lots of org.drools.common.ScheduledAgendaItem instances in memory

2012-05-28 Thread Wolfgang Laun
Just to make sure: How do you invoke the Engine? (I suppose you don't call with a limit for rule firings.) Unless it's a bug (BTW: your Drools version is?), it's due to one or more of your rules. Are you using timers? How? A detailed investigation of the whereabouts of these ScheduledAgendaItem

[rules-users] Lots of org.drools.common.ScheduledAgendaItem instances in memory

2012-05-28 Thread Werner Stoop
Hi, We're using Drools with a StatefulKnowledgeSession to process events coming from equipment in our network. The system draws conclusions about the state of the equipment and writes those conclusions to a table in our database. All our rules work as we expected and the system produces the correc