<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi again all,<br><br>Am i the only one noting these issues on the version? <br>If this is not the right place to discuss this, could someone point me in the right direction (do I enter an issue in JIRA with potential patches, ...)?<br><br>Thanks in advance<br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Mon, 25 Jun 2012 00:01:16 -0700<br>> From: jshemali@hotmail.com<br>> To: rules-users@lists.jboss.org<br>> Subject: [rules-users] Migrating from 4.0.7 to 5.4.0.Final<br>> <br>> Hi all,<br>> <br>> I'm currently in the process of migrating an application using drools 4.0.7<br>> to 5.4.0.Final and I've stumbled into a few issues with the new version that<br>> I find disturbing: <br>> <br>> - Our unit tests failed because the JVM ran out of perm gen space, which<br>> looks odd as in 4.0.7 we've had quite a margin to start with.<br>> - Doing several Yourkit analysis, I finally find classloading leaks: <br>> * *org.drools.rule.builder.dialect.asm.ClassGenerator.EMPTY_METHOD_BODY*<br>> is a static instance which will hold to the last instance of<br>> InternalClassLoader created<br>> * *org.drools.rule.constraint.MvelConstraint* uses an ExecutorHolder that<br>> spawns daemon threads and keeps them in a pool. Problem is these threads<br>> create class loaders, and can only be garbage collected when the thread<br>> dies, meaning never in my case...<br>> - I've quick fixed both issues, the second one by simply disabling the<br>> thread pool.<br>> - Once this is done, the perm gen behaves correctly, but the execution times<br>> are 2-3 times slower on very large set of rules (~1000). Looking at Yourkit<br>> analysis again, I see that the number of classes generated and the perm gen<br>> consumption is about 3 times higher in 5.4.0.Final. I honestly don't know<br>> how to address this.<br>> <br>> I've tried to find some other posts concerning these issues, to no avail. I<br>> don't see any work around this, short of code changes, and for reducing the<br>> number of generated classes I simply have no idea.<br>> <br>> Please correct me if I am wrong, any help would be greatly appreciated<br>> <br>> --<br>> View this message in context: http://drools.46999.n3.nabble.com/Migrating-from-4-0-7-to-5-4-0-Final-tp4018215.html<br>> Sent from the Drools: User forum mailing list archive at Nabble.com.<br>> _______________________________________________<br>> rules-users mailing list<br>> rules-users@lists.jboss.org<br>> https://lists.jboss.org/mailman/listinfo/rules-users<br></div>                                            </div></body>
</html>