<!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="text/html; charset=us-ascii" http-equiv=Content-Type>
<META content="MSHTML 6.00.6000.16981" name=GENERATOR></head><BODY>
<DIV>
<DIV>
<DIV><SPAN class=920531613-22032010><FONT face=Verdana size=2>Hi
All,</FONT></SPAN></DIV>
<DIV><SPAN class=920531613-22032010><FONT face=Verdana size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=920531613-22032010><FONT face=Verdana size=2>We have an
application that uses drools stateless session over a set of 35000
objects (taking about 40 MB heap) of different types. During profiling, I
saw that for rules that perform joins between two huge object types data sets,
lots of <FONT face=Tahoma size=2><FONT face=Tahoma size=2><STRONG>org.drools.reteoo.LeftTuple</STRONG> objects causing out of
memory errors. We are using 5G heap, and have set property
<STRONG>drools.sequential=true</STRONG> too. Is there any way we can decrease
the memory usage while applying these rules? Drools documentation
mentions for sequential mode, we should do the following, some
of them I am not sure how to set:</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=920531613-22032010><FONT face=Tahoma size=2></FONT></SPAN><SPAN class=920531613-22032010><FONT face=Tahoma size=2><FONT face=Verdana></FONT> </DIV>
<DIV>
<LI>
<P><STRONG>Turn off all node memories, except the right-input Object
memory.</STRONG></P></LI>
<LI>
<P><STRONG>Disconnect the LeftInputAdapterNode propagation, and have the Object
plus the Node referenced in a Command object, which is added to a list on the
WorkingMemory for later execution.</STRONG></P></LI>
<LI>
<P><STRONG>Assert all objects, when all assertions are finished and thus
right-input node memories are populated check the Command list and execute each
in turn.</STRONG></P></LI></FONT></SPAN></DIV>
<DIV><FONT face=Verdana size=2><A href="http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/index.html#d0e1295">http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/index.html#d0e1295</A></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=920531613-22032010>Do we need to set
some properties in <FONT size=2>RuleBaseConfiguration to make sure node memories
are switched off? It would be great if we can somehow decrease the memory usage
for stateless sessions? Has anybody come across such memory issues before?
Correct me if I am wrong, but I think 35000 objects is not a lot of data for
causing such issues. </FONT></SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=920531613-22032010></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=920531613-22032010>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=920531613-22032010>Malay</SPAN></FONT></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. 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></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. 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>