The figures you gave just indicate that you have a good balance between I/O<br>and CPU load. The increase between "no rules" and "~60 rules" is to be expected<br>as all the work is being done during fact insertion. Of course, adding more and<br>
more rules will, eventually, push the CPU load factor to the natural upper limit.<br><br>If the overall throughput is good, why do you worry?<br><br>-W<br><br><br><div class="gmail_quote">On Tue, Mar 24, 2009 at 11:20 PM, techy <span dir="ltr"><<a href="mailto:techluver007@gmail.com">techluver007@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hello<br>
My app is functioning consumer/producer model.<br>
1.Producer reads the data from DB and inserts to blocking queue<br>
2.Consumer reads the data from queue and execute the rules using drools<br>
stateless session.<br>
Both producer and consumer run asynchronously.<br>
<br>
in my testing I found the following<br>
<br>
1. for 1000 facts at a time and no rules in drl, cpu usage is maintained at<br>
25-30% in my PC(Intel core 2 CPU,2.13 GH,2G RAM) - with no rules in drl, Is<br>
this cpu usage acceptable?<br>
2. for 1000 facts at a time and ~60 rules in drl, cpu usage is maintained at<br>
50-60% on the same PC.<br>
3. If I have 1 sec wait between each execution of rules in consumer, then<br>
cpu usage is maintained < 5%<br>
<br>
high CPU usage is being big concern to me. Is this expected while using<br>
drools? Do others see same cpu usage too? Please share your thoughts.<br>
appreciate your input.<br>
<br>
Thanks<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://www.nabble.com/high-cpu-usage-tp22691131p22691131.html" target="_blank">http://www.nabble.com/high-cpu-usage-tp22691131p22691131.html</a><br>
Sent from the drools - user mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>