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