<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">We generate a lot more bytecode now,
      for improved performance execution. constraints start of being
      evaluated dynamically, as they were in 4.0.x, after they are
      executed a certain number of times we emit bytecode to allow JIT
      to provide improved execution times.<br>
      <br>
      Mark<br>
      <br>
      <br>
      On 29/06/2012 08:19, Jean-Paul Shemali wrote:<br>
    </div>
    <blockquote cite="mid:SNT110-W407369A9C15099A61B2F5DD2E50@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
      <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>&gt; Date: Mon, 25 Jun 2012 00:01:16 -0700<br>
          &gt; From: <a class="moz-txt-link-abbreviated" href="mailto:jshemali@hotmail.com">jshemali@hotmail.com</a><br>
          &gt; To: <a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><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:
<a class="moz-txt-link-freetext" href="http://drools.46999.n3.nabble.com/Migrating-from-4-0-7-to-5-4-0-Final-tp4018215.html">http://drools.46999.n3.nabble.com/Migrating-from-4-0-7-to-5-4-0-Final-tp4018215.html</a><br>
          &gt; Sent from the Drools: User forum mailing list archive at
          Nabble.com.<br>
          &gt; _______________________________________________<br>
          &gt; rules-users mailing list<br>
          &gt; <a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
          &gt; <a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
    <br>
  </body>
</html>