<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><head><META content="text/html; charset=us-ascii" http-equiv="Content-Type">

<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META content="MSHTML 6.00.6000.16981" name=GENERATOR></head><BODY>
<DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010>We&nbsp;have an 
drools 5.0.1 application that uses StatelessSession and high volume of objects 
(facts) that&nbsp;we need to apply static rules on, and having out of memory 
issues doing so. We added the following three properties as given in the drools 
documentation for decreasing the memory usage:</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010>drools.shadowproxy=false </SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010>drools.maintainTms=false </SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010>drools.sequential=true </SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010>As per the 
following blog, there is an algorithm to minimize the engine work, and memory 
usage. </SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010><A href="http://blog.athico.com/2007/07/sequential-rete.html">http://blog.athico.com/2007/07/sequential-rete.html</A></SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010>Are the properties 
above sufficient to trigger this algorithm, or do we need to do write extra code 
for this?</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010>Also, d<SPAN class=686024423-01032010>oes the "<SPAN class=686024423-01032010>drools.sequential" property make sure that rules are 
applied sequentially on facts? If so, i</SPAN></SPAN>s there a hook into the 
drools engine to figure out which particular rule is consuming more memory or 
having more execution time? </SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010></SPAN></FONT><FONT face=Verdana size=2><SPAN class=686024423-01032010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010>Thanks in 
advance.</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=686024423-01032010></SPAN></FONT>&nbsp;</DIV>
<DIV style="COLOR: black; FONT-FAMILY: arial"><SPAN style="FONT-SIZE: 10pt">Malay Shah<BR></SPAN></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV></DIV>
<DIV>
<HR>
</DIV>
<P CLASS="BulletedList" STYLE="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0in; mso-list: none; tab-stops: .5in"><SPAN STYLE="FONT-SIZE: 8pt; COLOR: gray; mso-bidi-font-family: Arial"><FONT COLOR="gray" FACE="Arial" SIZE="1">NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.&nbsp;We<SPAN STYLE="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: 'Arial','sans-serif'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"> may monitor and store emails to the extent permitted by applicable law.</SPAN></FONT></SPAN></P>
<DIV></DIV></BODY></HTML>