<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.2">
</HEAD>
<BODY>
Hello,<BR>
Yes, when running drools, the cpu usages goes high.<BR>
It is one of the main caracteristic with rule engine : the more cpu you have the quickler it is !!<BR>
It is normal because all the rete graph & Co are in ram and drools work on it. <BR>
So there is not wait for database, IO and co so CPU goes very high very quicly but is is normal !<BR>
All my customers have this surprise : a 4 CPU machine instead one one makes it able to have 4 concurrent drools sessions to work in parallele with the same performance as one session on one CPU !<BR>
Regards<BR>
Nicolas Heron<BR>
<BR>
Regards <BR>
Nicolas<BR>
Le mercredi 25 mars 2009 à 10:05 +0100, Wolfgang Laun a écrit :<BR>
<BLOCKQUOTE TYPE=CITE>
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>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
On Tue, Mar 24, 2009 at 11:20 PM, techy <<A HREF="mailto:techluver007@gmail.com">techluver007@gmail.com</A>> wrote:<BR>
<BLOCKQUOTE>
<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>
<BR>
<FONT COLOR="#888888">--</FONT><BR>
<FONT COLOR="#888888">View this message in context: <A HREF="http://www.nabble.com/high-cpu-usage-tp22691131p22691131.html">http://www.nabble.com/high-cpu-usage-tp22691131p22691131.html</A></FONT><BR>
<FONT COLOR="#888888">Sent from the drools - user mailing list archive at Nabble.com.</FONT><BR>
<BR>
<FONT COLOR="#888888">_______________________________________________</FONT><BR>
<FONT COLOR="#888888">rules-users mailing list</FONT><BR>
<FONT COLOR="#888888"><A HREF="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A></FONT><BR>
<FONT COLOR="#888888"><A HREF="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A></FONT>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<PRE>
_______________________________________________
rules-users mailing list
<A HREF="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A>
<A HREF="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>