[rules-users] Memory leak in 5.2/5.3

vadlam sreeram.vadlamudi at wellsfargo.com
Fri Sep 30 17:14:34 EDT 2011


as suggested in his post by Thomas , we are retracting the facts from memory.
we are doing it in the finally block to make sure a rule session exception
does not leave the facts in memory .

for ex, we came across an incorrect regular expression  syntax within the
rules when using incorrect syntax .

java.util.regex.PatternSyntaxException: Illegal character range near index 7
^[A-Za-Z]+

retracting the facts in finally block fixes the leak .

That, besides making sure we are reusing the StatefulSession rather than
creating a new one every time.

--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-Memory-leak-in-5-2-5-3-tp3280351p3383692.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list