[rules-users] How to monitor drools execution time?

2011-11-13 Thread Zhao Yi
I want to check how long each rule executed. Can I add any listener on drools run time to get the rule time? Thanks, Zhao Yi -- View this message in context: http://drools.46999.n3.nabble.com/How-to-monitor-drools-execution-time-tp3505792p3505792.html Sent from the Drools: User forum mailing

Re: [rules-users] How to monitor drools execution time?

2011-11-13 Thread Benson Fung
You can use the Drools guvnor to measure the execution time of each rule. This is the feature of that. On Mon, Nov 14, 2011 at 11:00 AM, Zhao Yi zhaoyi0...@gmail.com wrote: I want to check how long each rule executed. Can I add any listener on drools run time to get the rule time? Thanks,

Re: [rules-users] How to monitor drools execution time?

2011-11-13 Thread Davide Sottara
Sure, you can use /ksession.addEventListener( listener )/ to add your listeners. You'll have to implement the /AgendaEventListener/ interface: in particular, the /beforeActivationFired/ and /afterActivationFired/ handlers. If needed, the /WorkingMemoryEventListener/ will let you monitor object