[rules-users] Perm gen addPackageFromDrl

Joe White Joe.White at recondotech.com
Fri Aug 8 15:16:21 EDT 2008


HI all,

We've got an application that has the need to deploy dynamically
generated drl periodically. The drl is regenerated from a set of
database tables whenever a change is made to the tables. After running
through the generation and package building we eventually get an out of
memory error for permGen. The error is hit with 128 and 256mb of perm
gen.

 

The method that seems to cause the error is addPackageFromDRL on the
PackageBuilder. I've attached a method that represents what we are doing
with the drl and the package building in the 4.0.4 form. I get the error
in both 4.0.4 and in the 5.0 versions of drools. In the 4.0.4 version
shadow facts are disabled on the rule base. 

 

Is regenerating rules frequently from a drl format a valid use case? 

 

Any help in improving the perm gen consumption or fixing our use of
drools is greatly appreciated.

 

Thanks,

Joe

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080808/05d7c9b8/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PermGenFail.java
Type: application/octet-stream
Size: 1838 bytes
Desc: PermGenFail.java
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20080808/05d7c9b8/attachment.obj 


More information about the rules-users mailing list