<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>> Date: Mon, 25 Jun 2012 00:01:16 -0700<br>
> From: <a class="moz-txt-link-abbreviated" href="mailto:jshemali@hotmail.com">jshemali@hotmail.com</a><br>
> To: <a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><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:
<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>
> Sent from the Drools: User forum mailing list archive at
Nabble.com.<br>
> _______________________________________________<br>
> rules-users mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
> <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>