[rules-users] GC overhead limit exceeded

LeoIo begemot57 at hotmail.com
Wed Sep 22 09:45:09 EDT 2010


Hi,

I am getting "java.lang.OutOfMemoryError: GC overhead limit exceeded" error.
Using Drools 5.0.1 or 5.1.
There are about 1500 objects in the working memory. Everything goes fine
until I add an additional condition on a list attribute. I am trying to get
the size() of this list and compare it to an integer. (Actually the list
size is never greater 2) All objects from the list attribute are already in
working memory, so I think there is no need to add them to WM once again. 

Statistics shows a dramatic increase on number of objects using this
constraint.

So once again. Suppose I have 1500 objects of type "man". It has a list
attribute "children".
Following structure works:
If man.name == Peter, print Peter's age.

But the following scenario doesn't work for me (GC error):
If (man.name == Peter) && (man.children.size() > 1), print man's age.

Any ideas on how to fix that? May be reformulate the problem? Or fine tune
WM settings somehow?
Thanks in advance.  

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/GC-overhead-limit-exceeded-tp1561233p1561233.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list