<div dir="ltr"><div><div><div><div>Hi,<br></div>In your rule, in the then part do you create java objects ? <br></div>THe best thing would be to have a test case that reproduce this so we can help to find out.<br></div>You should add some listeners to see what is happening, maybe some rules do an infinite loops or stuff like this ? You have to find out which rule, set of rules do your effect.<br>
</div><div>I do not think it comes from drools. I did project with 200k rules, it is slow to build the package but once this is done, the rest works perfectly.<br>Have you tried to cut your drl file in smaller files ?<br>
</div><div>Cheers<br></div><div>Nicolas<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/16 peter.kutzner [via Drools] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4025982&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></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">
        Hi Nicolas
<br><br>Thx for your quick answer.
<br><br>Ok, i forgot some informations:
<br>Using : Java6.0.45 X64 (same problems using Java 7 X64)
<br><br>No, i don't use listeners.
<br>I tried with up to 10Gig without success.
<br><br>My (reduced) workflow is :
<br><br>1) <code><br>kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
<br>kbuilder.add(ResourceFactory.newClassPathResource(RULES_PATH, getClass()), ResourceType.DRL);
<br>kbase = KnowledgeBaseFactory.newKnowledgeBase();
<br>kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());
<br></code><br>2) <code><br>StatefulKnowledgeSession ruleSession = kbase.newStatefulKnowledgeSession();
<br></code> so far so good
<br>3) insert two supporter objects in session
<br>4) add two more worker objects in session
<br>5) fire all rules
<br>6) read and retract all expected objects
<br>7) dispose session
<br><br>Processing Steps 2)-7) (in a loop with different worker objects, to produce load, so there is always only
<br> one session active) work fine for a view times (3-9) then the mentioned exception occurs.
<br>I also tried it with 10gig for the jvm but in either test the memoryload does not exceed 3gig.
<br><br>With a reduced rules file size (to < 500k; removed some rules, to test this) i can handle 300000(!)
<br>loops without any exceptions.
<br><br>Hope this infos will help.
<br><br>Regards
<br>Peter
        
        
        
        <br>
        <br>
        <hr color="#cccccc" noshade size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://drools.46999.n3.nabble.com/Drools-5-5-Problems-with-big-rules-file-1-5Meg-tp4025974p4025981.html" target="_blank" rel="nofollow" link="external">http://drools.46999.n3.nabble.com/Drools-5-5-Problems-with-big-rules-file-1-5Meg-tp4025974p4025981.html</a>
        </div><div class="HOEnZb"><div class="h5">
        <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=4025982&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&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&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></div></div></blockquote></div><br></div>
        
        
        <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-5-Problems-with-big-rules-file-1-5Meg-tp4025974p4025982.html">Re: Drools 5.5 : Problems with big rules file (~1.5Meg)</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/>