Joe White wrote:
Can someone help me understand the relationship between the number of
Packages in a single RuleBase and PermGen memory consumption? I have a
test that generates 200 rules and then adds those rules as different
packages to a single rule base. PermGen consumption grows near
linearly with the addition of Packages to the rule base and on a
default PermGen setting the JVM runs out of PermGen after about 120
packages.
It's not related to Packages, it's related to the number of rules and
whether those rules have compiled java parts - like the consequence,
eval etc - each one adds an additional class.
Is every new Package and RuleBase backed by a set of generated
Classes? Is there a way to get around the amount of class generation
that is taking place?
The test has been run against Drools 5.
You can use MVEL, which has no class generation. There are improvements
we can make to generated code into a single class and use a switch
statement to invoke the correct part, but we don't have time for that
right now, so would need to come from the community.
Thank you for your help,
Joe
------------------------------------------------------------------------
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users