<br> Mario,<br><br> Each working memory executes single threaded and as such will use only one processor. As long as you have each of your requests creating a working memory (ideally from a shared pre-loaded/pre-compiled rulebase) and executing in a separate thread, it should be using all your processors. What I mean is, drools does not constrain/limit processor use... can you double check that you have the requests running concurrently, each on its own thread, or provide us a test case so that we can verify if there is any problem in drools causing this behavior?
<br><br> Thanks,<br> Edson<br><br><div><span class="gmail_quote">2007/11/8, Mario <<a href="mailto:send_lotsa_spam_here@yahoo.com">send_lotsa_spam_here@yahoo.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br><br>I've got a fairly simple web application with DRools 4.0.3 deployed on a Tomcat<br>5.5, where I'm running a stress test of about 100 users doing fact changes every<br>half a second. There are about 20 rules and about 20 facts. Each action loads
<br>and compiles the rule base, creates a new working memory and creates the facts<br>inside it. I know it's not efficient (rules should be loaded only once in the<br>application, working memory should be created only once in the session) but
<br>that's not my question.<br>This is a 4-way machine.<br>1. if I don't load and use drools, the web application uses all 4 processors<br>2. if drools does the above mentioned work, only ONE processor is used, at about
<br>100% CPU.<br>Does it make sense that way? Do I have to set anything so the other processors<br>are used as well?<br><br>Otherwise, I'd have a general performance question: is it more efficient to<br>empty the WM (one fact at a time) each time many facts need to be reloaded, or
<br>just drop it and create it again? I'm talking about some 200 facts, and a few<br>hundred rules.<br><br>Thanks a lot,<br>M<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">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli
<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>