<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=764482907-29072008><FONT face=Arial
color=#0000ff size=2>Do you use a stateful session?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=764482907-29072008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=764482907-29072008><FONT face=Arial
color=#0000ff size=2>Are your measurements before and after you've inserted
facts into working memory?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=764482907-29072008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=764482907-29072008><FONT face=Arial
color=#0000ff size=2>Would be helpful to the group to post your use-case
source?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=764482907-29072008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=764482907-29072008><FONT face=Arial
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=764482907-29072008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=764482907-29072008><FONT face=Arial
color=#0000ff size=2>Mike</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of </B>Roger
Tanuatmadja<BR><B>Sent:</B> 29 July 2008 02:12<BR><B>To:</B> Rules Users
List<BR><B>Subject:</B> [rules-users] Measuring Drools Memory
Usage<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hi, </DIV>
<DIV> </DIV>
<DIV>Has anyone attempted to measure the incremental memory usage of using
Drools? Anyone cares to share their methodology?</DIV>
<DIV> </DIV>
<DIV>I am currently following the following methodology:</DIV>
<DIV>1. Prevent garbage collection from happening by using large Xms Xmx
(1024m in my case), a NewRatio of 2 (I am sure other sizes will work as
well) and verbogegc enabled to confirm that no garbage collection is
happening.</DIV>
<DIV>2. Use Runtime.freeMemory before and after fireAllRules and measuring the
difference. </DIV>
<DIV> </DIV>
<DIV>The problem with my methods so far has been that after a positive memory
usage (indicating you are using memory), subsequent use case (the same one)
incurs zero memory usage which is very strange. </DIV>
<DIV> </DIV>
<DIV>So I guess my question is 2 fold: anyone care to share their methodology,
and can anyone see what's wrong with mine?</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV> </DIV>
<DIV>Roger</DIV></BLOCKQUOTE></BODY></HTML>