Hi,<br>Building a package from source takes a lot of memory.<br>In a project, I have about 50k rules and with guvnor I use this configuration<br>


        
        
        
        


<pre class="western" style="margin-bottom:0.5cm">-Xms64m -Xmx5512m -XX:MaxPermSize=256m <br>and it works fine.<br></pre>Anyway, you have to give drools enough memory to build the package.<br>Si increase Xmx to as much as needed.<br>
The only way to avoid that all runtimes use so much memory is to use Guvnor where you build the package (which means use a lot of memory) and then download a binary package from Guvnor.<br>In a previous project the Guvnor configuration had the one above and each drools runtime was working in less than 500MB<br>
Regards<br>Nicolas<br><br><div class="gmail_quote">2013/2/5 wang [via Drools] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=4022054&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span><br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        I Have 100K Rules in drl File ,we get a out memory Exception
<br>centos 5.5 x86_64 + jvm32,
<br>Java option -server -Xms3500m -Xmx3500m -Xss256k -Xmn2g
<br><br>how to load 100k rules?

        
        
        
        <br>
        <br>
        <hr color="#cccccc" noshade size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://drools.46999.n3.nabble.com/Drools-5-4-x-can-t-load-huge-rules-tp4022050.html" target="_blank" rel="nofollow" link="external">http://drools.46999.n3.nabble.com/Drools-5-4-x-can-t-load-huge-rules-tp4022050.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                To start a new topic under Drools: User forum, email <a href="/user/SendEmail.jtp?type=node&node=4022054&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
                To unsubscribe from Drools, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>

                <a href="http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div><br>


        
        
        <div class="signature" style="margin-top:1em;color:#666666;font-size:11px;">
                                Nicolas Héron
                        </div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-5-4-x-can-t-load-huge-rules-tp4022050p4022054.html">Re: Drools 5.4.x can‘t load huge rules</a><br/>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools: User forum mailing list archive</a> at Nabble.com.<br/>