<div><br></div>    Nikhil,<div><br></div><div>    Maybe you are using the term &quot;memory leak&quot; loosely here, but otherwise, Drools 4.0.7 and Drools 5.0.1 were both tested to exhaustion for memory leaks and I can tell you that no memory leak was found, and I personally doubt there is one there on regular use. Also, FYI, Drools 5.x eliminates the need for shadow facts, what is a considerable memory save over 4.x, but adds some other overheads for performance improvement that kind of offset those gains. On the other hand, Drools 5.1.1 takes the algorithm to a new level, saving a lot of memory on systems that use modify actions on their rules.</div>
<div><br></div><div><a href="http://blog.athico.com/2010/03/drools-halves-memory-use-with-new-true.html">http://blog.athico.com/2010/03/drools-halves-memory-use-with-new-true.html</a></div><div><br></div><div>    Regarding your performance, all I can tell you is that a rules engine is a relational engine that works pretty much like a database, and rules as databases queries. The same way you can write SQL queries that run fast or slow on a database, you can write rules that run fast or slow on a rules engine. It all depends on how the rules/queries are written, how your data model/domain model looks like, etc.</div>
<div><br></div><div>    So, regarding your question, we can&#39;t tell you how to improve those metrics without knowing your domain model, rules and etc. </div><div><br></div><div>    []s</div><div>    Edson<br><br><div class="gmail_quote">
2010/9/17 Nikhil S. Kulkarni <span dir="ltr">&lt;<a href="mailto:Nikhil.Kulkarni@mastek.com">Nikhil.Kulkarni@mastek.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">









<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal">Hi,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">                I
have written 2 different Drools programs. One is with Using rule Base of Drools
4.0 and other is using Knowledge Base of Drools 5.0.</p>

<p class="MsoNormal">I was trying to check that is there any improvement in
Drools 5.0. But I haven’t got any performance improvement in Drools 5.0
code compared to Drools 4.0.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">                One
more important thing is I am calling this drools code from  My application
which itself is heavy application, when I am doing Performance tuning </p>

<p class="MsoNormal">I got one point i.e. session.execute() method is taking
around 6-7 seconds to initialize rules and even the memory utilized by Rules is
huge.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">So is there any way that we can reduce the Memory leakage
and improve performance.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Waiting for Reply.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks &amp; Regards,</p>

<p class="MsoNormal">Nikhil S. Kulkarni</p>

<p class="MsoNormal">Emp No: - 9254</p>

<p class="MsoNormal"> </p>

</div>

<br><br><table bgcolor="white" style="color:black"><tbody><tr><td><br>MASTEK LTD.<br>
In the US, we&#39;re called MAJESCOMASTEK<br>
<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.<br>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
</td></tr></tbody></table></div>


<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>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>