[rules-users] Max packages

Mark Proctor mproctor at codehaus.org
Wed Aug 13 04:53:00 EDT 2008


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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080813/29aa8f63/attachment.html 


More information about the rules-users mailing list