<br> I am not sure I understand what you are doing when you say:<br><br>> Every X seconds I collect the available facts and call fireAllRules() +
dispose(), **always within the same session**.<br>(emphasis is mine)<br><br> Compilation indeed uses more memory, but you can compile once and reuse the kbase. Also, if you are calling dispose, I guess you are running stateful sessions. Maybe you can give us a more detailed description of your session/data/application lifecycle?<br>
<br> Edson<br><br><br><div class="gmail_quote">2010/3/30 Miguel Machado <span dir="ltr"><<a href="mailto:mls.machado@gmail.com">mls.machado@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
hi all,<br>
<br>
I'm quite new to the drools rule engine and i've been using it for a project where i need to filter events and execute actions accordingly.<br>
<br>
I'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'm using the "no-loop", "lock-on-active", "activation-group" and "agenda-group" 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'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>
_______________________________________________<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>
</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>