Hi Pentarakis,<br><br>I had a quick look at your issue. I couldn't understand why you're re-adding the same rules to your KB.<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
<i> Now, I redo this and add the same 100 rules again to the KnowledgeBase (2nd run). And so on.</i><br></blockquote><br>I think that a better approach is to cache your knowledge base and get a <b>new </b>stateless or stateful session, whenever you need to run your rules. There's no need to re add the same rules to an existing KB before a run.<br>
<br>Hope that helps.<br><br>Leonardo.<br><span dir="ltr"></span><br><div class="gmail_quote">On Mon, Nov 15, 2010 at 1:38 PM, Pentarakis <span dir="ltr"><<a href="mailto:pentarakis@gmail.com">pentarakis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Hi!<br>
<br>
I created a new issue some days ago. I'm new to the jboss community and<br>
therefore not sure whether I did it correctly. It seems like no one has<br>
found it yet.<br>
<br>
Could somebody have a look at it and could provide me feedback?<br>
<br>
<a href="http://jira.jboss.org/browse/JBRULES-2782" target="_blank">http://jira.jboss.org/browse/JBRULES-2782</a><br>
<a href="http://jira.jboss.org/browse/JBRULES-2782" target="_blank">http://jira.jboss.org/browse/JBRULES-2782</a><br>
<br>
THANK YOU VERY MUCH IN ADVANCE !!!<br>
<br>
<br>
Kind regards<br>
Pentarakis<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Issue-2782-Potential-memory-leak-when-rules-are-often-reloaded-tp1904160p1904160.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Issue-2782-Potential-memory-leak-when-rules-are-often-reloaded-tp1904160p1904160.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<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>
</font></blockquote></div><br>