<div dir="ltr">Hi,<br>&nbsp;this might either be a java-users questions or a drools-users, but I&#39;d like to try here to see if somebody has any suggestions for me.<br><br>&nbsp;I have observed that the ruleFlow that I am using gets slower and slower since its initial deployment. It initially started taking like 30mins to evaluate all the rules, but the run-time goes up to about 4hours in about 4 days.<br>
<br>&nbsp;I am using a statelessSession. I do a RuleBaseFactory().newRuleBase() and ruleBase.newStatelessSession() each time I begin an evaluation (I evaluate about 50k objects, once a day). I have the ruleBase as a private instance in an EvaluationHandler which does other evaluations as well and is a singleton which is obtained from a factory.<br>
<br>&nbsp;Has anyone else too on this forum faced this issue? I found this archive, but no reply to it: <a href="http://www.nabble.com/Performance-Question-with-Stateless-Session-to14704425.html#a14704425">http://www.nabble.com/Performance-Question-with-Stateless-Session-to14704425.html#a14704425</a><br>
<br>&nbsp;Could it be that a new ruleBase is being created each time I do an evaluation (it obviously is), but a reference to the old ruleBase still hangs around (and hence the entire WorkingMemory)? I checked the RuleBase apis and I couldn&#39;t find anything that could help me clear the workingMemory once I am done with evaluating all the rules.<br>
<br>&nbsp;Would be great if somebody could ched some light into this issue that I am facing and/or let me know the path I must follow to find the root-cause of the slowing down of the evaluations.<br><br>&nbsp;Thanks,<br>- am<br><br>
</div>