[rules-users] How to monitor drools execution time?
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 list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] How to monitor drools execution time?
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, 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 list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] How to monitor drools execution time?
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 insertions and retractions. You can also see section 4.3.5 in the Drools Expert User Guide for more details. Davide -- View this message in context: http://drools.46999.n3.nabble.com/How-to-monitor-drools-execution-time-tp3505792p3505821.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