<div dir="ltr"><br>&nbsp;&nbsp;&nbsp; For Drools 4.0.x we eventually run profiling tools to make sure we got not leak. A couple were found and fixed in the past and we are not aware of any leak in <a href="http://4.0.7.">4.0.7.</a> <br>&nbsp;&nbsp;&nbsp; It is very important though to make sure that if you are using stateful sessions, you call dispose() on the session after using it. Otherwise, drools will hold resources internally (since it is a stateful session).<br>
<br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2008/7/29 Ingomar Otter <span dir="ltr">&lt;<a href="mailto:iotter@mac.com">iotter@mac.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
We used two approaches to double check results.<br>
At first we used an approach similiar to what you haved described. Please note that (depneding on platfom) freeMemory is not byte- exact). Wo you won&#39;t see little changes.<br>
Also, if you were using stateless sessions the result you have seen may be correct.<br>
<br>
Out other approach was to seriazie that parts we&#39;re instrested in (and assume that real memory usage is just an small factor to be applied to the result we go.<br>
We then compared the two results and they agreed on the order of magnitude which was what were looking for.<br>
However we were primarily looking at Rulebase sizes, not WM memory consumption - which for the application we are currently are working on is neglegctible.<div class="Ih2E3d"><br>
<br>
&gt;Has anyone attempted to measure the incremental memory usage of using<br>
&gt;Drools<br></div>
Do you expect an incremental memory usage (aka memory leak) using Drools? I don&#39;t &nbsp;;-)<br>
You may want to run your use-case let&#39;s say 100.000 times to easiert to measure results.<br>
<br>
--I<br>
<br>
<br>
<br>
<br>
<br>
Am 29.07.2008 um 03:11 schrieb Roger Tanuatmadja:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
Hi,<br>
<br>
Has anyone attempted to measure the incremental memory usage of using<br>
Drools? Anyone cares to share their methodology?<br>
<br>
I am currently following the following methodology:<br>
1. Prevent garbage collection from happening by using large Xms Xmx (1024m<br>
in my case), a NewRatio of 2 (I am sure other sizes will work as well) and<br>
verbogegc enabled to confirm that no garbage collection is happening.<br>
2. Use Runtime.freeMemory before and after fireAllRules and measuring the<br>
difference.<br>
<br>
The problem with my methods so far has been that after a positive memory<br>
usage (indicating you are using memory), subsequent use case (the same one)<br>
incurs zero memory usage which is very strange.<br>
<br>
So I guess my question is 2 fold: anyone care to share their methodology,<br>
and can anyone see what&#39;s wrong with mine?<br>
<br>
Thanks,<br>
<br>
Roger<br></div></div>
_______________________________________________<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>
</blockquote>
<br>
_______________________________________________<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>
</blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>