Re: [rules-users] Drools Performance /Memory Leak Issue
Thanks, MBeansOption.ENABLED is working perfectly. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Performance-Memory-Leak-Issue-tp3448321p3466293.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] Drools Performance /Memory Leak Issue
HI, There was one bad rule, when I removed that memory leak is gone and the performance improved drastically!!! (from 60 sec for 1000 records to 10 seconds, satisfies our requirements) I am not sure what is wrong with the rule, I will check that tomorrow, I am a happy man now. Abdul -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Performance-Memory-Leak-Issue-tp3448321p3450367.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] Drools Performance /Memory Leak Issue
Hi Edson, Yes I am calling displose(). No I have not tried 5.3 it, I will give it a shot. What was the issue with jbpm being in the class path, is it related to memory leak over time? AS for MBeans, thanks, I will try that also. What I am doing now is removed all rules, putting one rule at a time back running the performance test each time. What gives me hope is that when the rules was reduced to one or two I do not see any memory leak or performance issue (acceptable performance for our needs). So this gives me hope perhaps there are one or two offending rules out there. I am not a drools expert and I am sure some of the rules are not written in the best possible way. There are accumulations, collections, DB calls and what not. It is painful, but I am hopeful. Thanks, Abdul -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Performance-Memory-Leak-Issue-tp3448321p3448559.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] Drools Performance /Memory Leak Issue
I assume you are calling dispose() after using each session? Using stateless session is an option as well. If so, with Drools 5.2 we had a problem with jbpm being in the classpath, fixed in 5.3. Did you tried Drools 5.3 yet? To enable MBeans, just use the MBeansOption.ENABLED in the KBase configuration, or set the system property: drools.mbeans=enabled. Edson 2011/10/24 arrehman > Hi, > > Are there any instructions on how to enable JMX Beans and monitor Drools > using JConsole or JVisualVM anywhere? > > Thanks, > Abdul > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Drools-Performance-Memory-Leak-Issue-tp3448321p3448342.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 > -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools Performance /Memory Leak Issue
Hi, Are there any instructions on how to enable JMX Beans and monitor Drools using JConsole or JVisualVM anywhere? Thanks, Abdul -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Performance-Memory-Leak-Issue-tp3448321p3448342.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] Drools Performance /Memory Leak Issue
Hi, I am not much of an expert on Drools. I got a DRL file (very small rule set of less than 10 rules, that checks few conditions, also includes DB calls). I use Drools 5.2 inside a grails application. I am using stateful session. I call this rules 100,000 times for each for each of the 100,000 records that I want to validate. However the performance gradually deteriorates. What could be going on here? General advice on how to approach solving this, improving performance. Should I be using stateless drools session? How do I configure the Drools MBeans so I can monitor Drools better? PS: I can provide more details as you needed. I can paste the general gist of the code and DRL file. Any help is greatly appreciated. I spent two days on this with no results. Thanks, Abdul -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Performance-Memory-Leak-Issue-tp3448321p3448321.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