<font size="2"><font face="verdana,sans-serif">Hi there,</font></font><div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">Actually that&#39;s a very good suggestion, i hadn&#39;t thought about that. Is there any heap inspector tool you&#39;d recommend? </font></font></div>
<div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">In what comes to Wolfgang ideas, it makes sense what he said, but the truth is making the knowledge builder a static variable actually made memory usage lower (just a bit). I know it strikes as a surprise because one of the good practices in java is to reduce the variable/object scope as much as possible :-/ I&#39;ll try to investigate this further.</font></font></div>
<div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font class="Apple-style-span" face="verdana, sans-serif">About the kbase serializing, i&#39;ll give it another try.</font></div><meta charset="utf-8"><div>
<font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">thanks for all support so far guys.</font></font></div><div><font size="2"><font face="verdana,sans-serif">_ miguel</font></font></div>
<div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif"><br></font></font><br><div class="gmail_quote">2010/4/1 Jevon Wright <span dir="ltr">&lt;<a href="mailto:jevon@jevon.org">jevon@jevon.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Miguel,<br><br>I assume that you&#39;ve used a memory analyzer to find out conclusively that the memory usage is by Drools, and not a memory leak?<br>
<br>One way to do this is to limit the virtual memory to a small amount, add -XX:+HeapDumpOnOutOfMemoryError to your environment, and then using Memory Analyzer to analyse the dump.<br>
<br>Cheers<br><font color="#888888">Jevon<br><br></font><div class="gmail_quote"><div><div></div><div class="h5">On Wed, Mar 31, 2010 at 2:44 AM, Miguel Machado <span dir="ltr">&lt;<a href="mailto:mls.machado@gmail.com" target="_blank">mls.machado@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div class="h5">
hi all,<br>
<br>
I&#39;m quite new to the drools rule engine and i&#39;ve been using it for a project where i need to filter events and execute actions accordingly.<br>
<br>
I&#39;m currently running a DRL file and creating a stateful session from it, and then running 2/3 facts every time. Every X seconds I collect the available facts and call fireAllRules() + dispose(), always within the same session. The DRL file has circa 2160 rules declared (an external program is producing them), and i&#39;m using the &quot;no-loop&quot;, &quot;lock-on-active&quot;, &quot;activation-group&quot; and &quot;agenda-group&quot; options on almost every one.<br>


<br>
My main problem is that the software is consuming too much memory when it loads the rules to the knowledge base variable, it reaches +300Mb which is just not affordable in this project. Is there any way i can work around this? I&#39;ve tried setting some configuration properties but to no avail. What techniques may i try in order to reduce memory load on drools startup? What would be the best approach for dealing with so many rules?<br>


<br>
Anything would help, thanks in advance,<br>
<br>
_ miguel<br>
<br>
<br></div></div><div class="im">
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
</div></blockquote></div><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>
<br></blockquote></div><br><br clear="all"><br>-- <br>&quot;To understand what is recursion you must first understand recursion&quot;<br>
</div>