<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">why not just update to 5.6, it’s fixed there.<div><a href="http://downloads.jboss.org/drools/release/5.6.0.Final/">http://downloads.jboss.org/drools/release/5.6.0.Final/</a></div><div><br></div><div>You can specify dialect at the top of the drl file, to be applied to all rules in that file. But that’s about it.</div><div><br></div><div>Mark<br><div><div>On 15 Jan 2014, at 20:51, <a href="mailto:adarsh.chaini@hsbcib.com">adarsh.chaini@hsbcib.com</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><font size="2" face="sans-serif">Is this possible to set everything to MVEL
Dialect as we are using &nbsp;JavaDialect &nbsp;in all our rules.</font>
<br><font size="2" face="sans-serif">We had this few times before and we
managed to avoid it with usage of CMSClassUnlaoadingEnabled .</font>
<br><font size="2" face="sans-serif">But this has again comeback recently
because the rate at which the classes are produced with load,CMS is unable
to collect &nbsp;the permgen space at same rate so it trips<br>
</font>
<br><font size="2" face="sans-serif">Thanks and regards,<br>
</font>
<br><font size="2" color="red" face="Arial"><b>Adarsh CHAINI </b></font>
<br><font size="1" face="Arial">SENIOR LEAD DEVELOPMENT SPECIALIST | HSBC
Bank Plc<br>
8 Canada Square, London E14 5HQ, UK</font>
<table>
<tbody><tr>
<td><font size="1" color="red" face="Arial">_______________________________________________</font>
<br><font size="1"><br>
</font>
<table width="100%">
<tbody><tr>
<td width="12%">
</td><td width="87%">
</td></tr><tr>
<td><font size="1" color="#4f4f4f" face="Arial">Phone</font>
</td><td><font size="1" color="#4f4f4f" face="Arial">Int: (0)79914720 Ext: +44 (0)20
79914720</font>
</td></tr><tr>
<td><font size="1" color="#4f4f4f" face="Arial">Mobile</font>
</td><td><font size="1" color="#4f4f4f" face="Arial">+44(0)7595530105</font>
</td></tr><tr>
<td><font size="1" color="#4f4f4f" face="Arial">Email</font>
</td><td><a href="mailto:adarsh.chaini@hsbcib.com"><font size="1" color="red" face="Arial"><u>adarsh.chaini@hsbcib.com</u></font></a></td></tr></tbody></table>
<br>
<br><font size="1" color="red" face="Arial">_______________________________________________</font>
<br><font size="1" color="#008000" face="Arial">Protect our environment - please
only print this if you have to!</font></td></tr></tbody></table>
<br>
<br>
<br>
<br>
<table width="100%">
<tbody><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">From:</font>
</td><td><font size="1" face="sans-serif">Mark Proctor &lt;<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt;</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">To:</font>
</td><td><font size="1" face="sans-serif">Rules Users List &lt;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Date:</font>
</td><td><font size="1" face="sans-serif">15/01/2014 18:27</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Subject:</font>
</td><td><font size="1" face="sans-serif">Re: [rules-users] permgen leak</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Sent by:</font>
</td><td><font size="1" face="sans-serif"><a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a></font></td></tr></tbody></table>
<br>
<hr noshade="">
<br>
<br>
<br><font size="3">You can try setting everything to the MVEL dialect, and
also forcing MVEL to reflection via the system property (turning off jit)</font>
<br><a href="http://mvel.codehaus.org/Disabling+the+JIT+Compiler"><font size="3" color="blue"><u>http://mvel.codehaus.org/Disabling+the+JIT+Compiler</u></font></a>
<br>
<br><font size="3">Mark</font>
<br><font size="3">On 15 Jan 2014, at 18:23, </font><a href="mailto:adarsh.chaini@hsbcib.com"><font size="3" color="blue"><u>adarsh.chaini@hsbcib.com</u></font></a><font size="3">
wrote:</font>
<br>
<br><font size="2" face="sans-serif">Hi Mark/Davide</font><font size="3"> <br>
</font><font size="2" face="sans-serif"><br>
Is there a work around to this problem in 5.4?.<br>
</font><font size="3"><br>
</font><font size="2" face="sans-serif"><br>
Thanks and regards,</font><font size="3"><br>
</font><font size="2" color="red" face="Arial"><b><br>
Adarsh CHAINI </b></font><font size="1" face="Arial"><br>
SENIOR LEAD DEVELOPMENT SPECIALIST | HSBC Bank Plc<br>
8 Canada Square, London E14 5HQ, UK</font><font size="3"> </font>
<table>
<tbody><tr>
<td><font size="1" color="red" face="Arial">_______________________________________________</font><font size="3">
</font><font size="1"><br>
</font>
<br>
<table width="100%">
<tbody><tr>
<td width="15%">
</td><td width="84%">
</td></tr><tr>
<td><font size="1" color="#4f4f4f" face="Arial">Phone</font><font size="3"> </font>
</td><td><font size="1" color="#4f4f4f" face="Arial">Int: (0)79914720 Ext: +44 (0)20
79914720</font><font size="3"> </font>
</td></tr><tr>
<td><font size="1" color="#4f4f4f" face="Arial">Mobile</font><font size="3">
</font>
</td><td><font size="1" color="#4f4f4f" face="Arial">+44(0)7595530105</font><font size="3">
</font>
</td></tr><tr>
<td><font size="1" color="#4f4f4f" face="Arial">Email</font><font size="3"> </font>
</td><td><a href="mailto:adarsh.chaini@hsbcib.com"><font size="1" color="red" face="Arial"><u>adarsh.chaini@hsbcib.com</u></font></a></td></tr></tbody></table>
<br><font size="3"><br>
</font><font size="1" color="red" face="Arial"><br>
_______________________________________________</font><font size="3"> </font><font size="1" color="#008000" face="Arial"><br>
Protect our environment - please only print this if you have to!</font></td></tr></tbody></table>
<br><font size="3"><br>
<br>
<br>
</font>
<table width="100%">
<tbody><tr valign="top">
<td width="17%"><font size="1" color="#5f5f5f" face="sans-serif">From:</font><font size="3">
</font>
</td><td width="82%"><font size="1" face="sans-serif">Mark Proctor &lt;</font><a href="mailto:mproctor@codehaus.org"><font size="1" color="blue" face="sans-serif"><u>mproctor@codehaus.org</u></font></a><font size="1" face="sans-serif">&gt;</font><font size="3">
</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">To:</font><font size="3">
</font>
</td><td><font size="1" face="sans-serif">Rules Users List &lt;</font><a href="mailto:rules-users@lists.jboss.org"><font size="1" color="blue" face="sans-serif"><u>rules-users@lists.jboss.org</u></font></a><font size="1" face="sans-serif">&gt;</font><font size="3">
</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Date:</font><font size="3">
</font>
</td><td><font size="1" face="sans-serif">08/01/2014 04:46</font><font size="3">
</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Subject:</font><font size="3">
</font>
</td><td><font size="1" face="sans-serif">Re: [rules-users] permgen leak</font><font size="3">
</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Sent by:</font><font size="3">
</font>
</td><td><a href="mailto:rules-users-bounces@lists.jboss.org"><font size="1" color="blue" face="sans-serif"><u>rules-users-bounces@lists.jboss.org</u></font></a></td></tr></tbody></table>
<br><font size="3"><br>
</font>
<hr noshade=""><font size="3"><br>
<br>
</font><tt><font size="2"><br>
For anyone interested. The commit involves addressing two needs.<br>
1) Enforcing MVEL reflection mode throughout - MVEL ASM optimiser can NEVER
be used for anything (it doesn’t add much value anyway).<br>
2) Avoiding giving the template system the root class loader(which we use
for dynamic stuff), as those templates are statically cached.</font></tt><font size="3" color="blue"><u><br>
</u></font><a href="https://github.com/sotty/drools/commit/1b75d4785861e72338cc5ea1280610a7937be017"><tt><font size="2" color="blue"><u>https://github.com/sotty/drools/commit/1b75d4785861e72338cc5ea1280610a7937be017</u></font></tt></a><tt><font size="2"><br>
<br>
Mark<br>
On 8 Jan 2014, at 00:53, Mark Proctor &lt;</font></tt><a href="mailto:mproctor@codehaus.org"><tt><font size="2" color="blue"><u>mproctor@codehaus.org</u></font></tt></a><tt><font size="2">&gt;
wrote:<br>
<br>
&gt; The root of the perm gen leak has now be solved, &nbsp;thanks to some
heroic work by community developer Davide Sottara.<br>
&gt; <br>
&gt; This is just in time for the 5.6 release going out this week. You
will not need to use the kbase.dispose() work around.<br>
&gt; <br>
&gt; Mark<br>
&gt; On 6 Jan 2014, at 20:50, Mark Proctor &lt;</font></tt><a href="mailto:mproctor@codehaus.org"><tt><font size="2" color="blue"><u>mproctor@codehaus.org</u></font></tt></a><tt><font size="2">&gt;
wrote:<br>
&gt; <br>
&gt;&gt; The 5.6 approach should be considered a work around, not a fix.
Somewhere a ref is being held, that shouldn’t be - we just haven’t found
it yet.<br>
&gt;&gt; <br>
&gt;&gt; Mark<br>
&gt;&gt; <br>
&gt;&gt; On 6 Jan 2014, at 19:17, Davide Sottara &lt;</font></tt><a href="mailto:dsotty@gmail.com"><tt><font size="2" color="blue"><u>dsotty@gmail.com</u></font></tt></a><tt><font size="2">&gt;
wrote:<br>
&gt;&gt; <br>
&gt;&gt;&gt; I have run pmander's tests, and reported in a previous email.<br>
&gt;&gt;&gt; The leak in 5.x is due to the nature of the composite classloader,
and<br>
&gt;&gt;&gt; dispose()<br>
&gt;&gt;&gt; forces the memory to be released. I don't remember if that
fix was in<br>
&gt;&gt;&gt; 5.6.CR1<br>
&gt;&gt;&gt; (probably not), so you may have to try 5.6.0-SNAPSHOT or wait
for the<br>
&gt;&gt;&gt; end of the week.<br>
&gt;&gt;&gt; 6.x does not suffer from the same problem, but has a different
issue -<br>
&gt;&gt;&gt; no way<br>
&gt;&gt;&gt; to unload kie modules once they are cached - which Mario has
been<br>
&gt;&gt;&gt; working on.<br>
&gt;&gt;&gt; In either case, pmander's test works fine in both 5.6.x and
6.x after<br>
&gt;&gt;&gt; these fixes<br>
&gt;&gt;&gt; Davide<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; On 01/06/2014 07:56 PM, Mark Proctor wrote:<br>
&gt;&gt;&gt;&gt; I’ve been &nbsp;told 5.6 will be released this week.
This is because the JCR2GIT migration tool, in 5.6 is needed for our 6.0
product. <br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt; Davide's current kbase.dispose() method, on the concrete
class, should just be considered a work around for the problem. Unless
this is fixed by someone in the community, I don’t think any core developers
will have time to address this. At least not for 5.x; we’ll continue to
look into it for 6.x.<br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt; Mark<br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt; On 6 Jan 2014, at 16:14, brachi &lt;</font></tt><a href="mailto:brachi.w@sapiens.com"><tt><font size="2" color="blue"><u>brachi.w@sapiens.com</u></font></tt></a><tt><font size="2">&gt;
wrote:<br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt;&gt; see previous messages, pmander attached a unit test<br>
&gt;&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt;&gt; View this message in context: </font></tt><a href="http://drools.46999.n3.nabble.com/permgen-leak-tp4027038p4027539.html"><tt><font size="2" color="blue"><u>http://drools.46999.n3.nabble.com/permgen-leak-tp4027038p4027539.html</u></font></tt></a><tt><font size="2"><br>
&gt;&gt;&gt;&gt;&gt; Sent from the Drools: User forum mailing list archive
at </font></tt><a href="http://nabble.com/"><tt><font size="2" color="blue"><u>Nabble.com</u></font></tt></a><tt><font size="2">.<br>
&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt; rules-users mailing list<br>
&gt;&gt;&gt;&gt;&gt; </font></tt><a href="mailto:rules-users@lists.jboss.org"><tt><font size="2" color="blue"><u>rules-users@lists.jboss.org</u></font></tt></a><tt><font size="2"><br>
&gt;&gt;&gt;&gt;&gt; </font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size="2" color="blue"><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></tt></a><tt><font size="2"><br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; rules-users mailing list<br>
&gt;&gt;&gt;&gt; </font></tt><a href="mailto:rules-users@lists.jboss.org"><tt><font size="2" color="blue"><u>rules-users@lists.jboss.org</u></font></tt></a><tt><font size="2"><br>
&gt;&gt;&gt;&gt; </font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size="2" color="blue"><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></tt></a><tt><font size="2"><br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; rules-users mailing list<br>
&gt;&gt;&gt; </font></tt><a href="mailto:rules-users@lists.jboss.org"><tt><font size="2" color="blue"><u>rules-users@lists.jboss.org</u></font></tt></a><tt><font size="2"><br>
&gt;&gt;&gt; </font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size="2" color="blue"><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></tt></a><tt><font size="2"><br>
&gt;&gt; <br>
&gt; <br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list</font></tt><tt><font size="2" color="blue"><u><br>
</u></font></tt><a href="mailto:rules-users@lists.jboss.org"><tt><font size="2" color="blue"><u>rules-users@lists.jboss.org</u></font></tt></a><font size="3" color="blue"><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size="2" color="blue"><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></tt></a><font size="3"><br>
<br>
</font><font size="2" face="sans-serif"><br>
<br>
<br>
************************************************************<br>
HSBC Bank plc may be solicited in the course of its placement efforts for
a new issue, by investment clients of the firm for whom the Bank as a firm
already provides other services. It may equally decide to allocate to its
own proprietary book or with an associate of HSBC Group. This represents
a potential conflict of interest. HSBC Bank plc has internal arrangements
designed to ensure that the firm would give unbiased and full advice to
the corporate finance client about the valuation and pricing of the offering
as well as internal systems, controls and procedures to identify and manage
conflicts of interest.<br>
<br>
HSBC Bank plc<br>
Registered Office: 8 Canada Square, London E14 5HQ, United Kingdom<br>
Registered in England - Number 14259<br>
Authorised by the Prudential Regulation Authority and regulated by the
Financial Conduct Authority and the Prudential Regulation Authority<br>
************************************************************<br>
<br>
<br>
************************************************************<br>
HSBC Bank plc may be solicited in the course of its placement efforts for
a new issue, by investment clients of the firm for whom the Bank as a firm
already provides other services. It may equally decide to allocate to its
own proprietary book or with an associate of HSBC Group. This represents
a potential conflict of interest. HSBC Bank plc has internal arrangements
designed to ensure that the firm would give unbiased and full advice to
the corporate finance client about the valuation and pricing of the offering
as well as internal systems, controls and procedures to identify and manage
conflicts of interest.<br>
<br>
HSBC Bank plc<br>
Registered Office: 8 Canada Square, London E14 5HQ, United Kingdom<br>
Registered in England - Number 14259<br>
Authorised by the Prudential Regulation Authority and regulated by the
Financial Conduct Authority and the Prudential Regulation Authority<br>
************************************************************</font><font size="3"><br>
----------------------------------------- SAVE PAPER - THINK BEFORE YOU
PRINT! This transmission has been issued by a member of the HSBC Group
"HSBC" for the information of the addressee only and should not
be reproduced and/or distributed to any other person. Each page attached
hereto must be read in conjunction with any disclaimer which forms part
of it. Unless otherwise stated, this transmission is neither an offer nor
the solicitation of an offer to sell or purchase any investment. Its contents
are based on information obtained from sources believed to be reliable
but HSBC makes no representation and accepts no responsibility or liability
as to its completeness or accuracy._______________________________________________<br>
rules-users mailing list</font><font size="3" color="blue"><u><br>
</u></font><a href="mailto:rules-users@lists.jboss.org"><font size="3" color="blue"><u>rules-users@lists.jboss.org</u></font></a><font size="3"><br>
</font><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><font size="3">https://lists.jboss.org/mailman/listinfo/rules-users</font></a>
<br><tt><font size="2">_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size="2">https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a>
<br>
<br><font size="2" face="sans-serif"><br>
<br>
************************************************************<br>
HSBC Bank plc may be solicited in the course of its placement efforts for
a new issue, by investment clients of the firm for whom the Bank as a firm
already provides other services. It may equally decide to allocate to its
own proprietary book or with an associate of HSBC Group. This represents
a potential conflict of interest. HSBC Bank plc has internal arrangements
designed to ensure that the firm would give unbiased and full advice to
the corporate finance client about the valuation and pricing of the offering
as well as internal systems, controls and procedures to identify and manage
conflicts of interest.<br>
<br>
HSBC Bank plc<br>
Registered Office: 8 Canada Square, London E14 5HQ, United Kingdom<br>
Registered in England - Number 14259<br>
Authorised by the Prudential Regulation Authority and regulated by the
Financial Conduct Authority and the Prudential Regulation Authority<br>
************************************************************<br>
</font>

-----------------------------------------
SAVE PAPER - THINK BEFORE YOU PRINT!

This transmission has been issued by a member of the HSBC Group
"HSBC" for the information of the addressee only and should not be
reproduced and/or distributed to any other person. Each page
attached hereto must be read in conjunction with any disclaimer
which forms part of it. Unless otherwise stated, this transmission
is neither an offer nor the solicitation of an offer to sell or
purchase any investment. Its contents are based on information
obtained from sources believed to be reliable but HSBC makes no
representation and accepts no responsibility or liability as to its
completeness or accuracy._______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-users</blockquote></div><br></div></body></html>