<br> Yes, as others said, patterns are created at compile time, and every time a copy of your rulebase is deserialized. So, if you are seeing differences, either the rulebases contain different rules, or one of them was recompiled/deserialized/updated a different number of times compared to the other and something is preventing the GC to garbage collect patterns.<br>
<br> []s<br> Edson<br><br><div class="gmail_quote">2009/3/3 Barry K <span dir="ltr"><<a href="mailto:barry.knapp@railinc.com">barry.knapp@railinc.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
The rules are not recompiled.<br>
Sorry I do not have code to provide for the memory footprint, we use I3 to<br>
get a snapshot of all java objects in memory from each server.<br>
<br>
Thanks<br>
Barry<br>
<div><div><span id="q_11fcdc5f5cd96055_1" class="h4">- Mostrar texto das mensagens anteriores -</span></div><div class="h5"><br>
<br>
Greg Barton wrote:<br>
><br>
> Do you mean org.drools.rule.Pattern? If so, it is created when the rules<br>
> are compiled, and with identical rulesets I'd expect you should have the<br>
> same number on each server. Edson or Mark would know if that's not the<br>
> case.<br>
><br>
> Are your rules ever recompiled between runs?<br>
><br>
> Can you provide the code that takes the snapshot?<br>
><br>
> --- On Tue, 3/3/09, Barry K <<a href="mailto:barry.knapp@railinc.com">barry.knapp@railinc.com</a>> wrote:<br>
><br>
>> From: Barry K <<a href="mailto:barry.knapp@railinc.com">barry.knapp@railinc.com</a>><br>
>> Subject: Re: [rules-users] Patterns in Memory<br>
>> To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
>> Date: Tuesday, March 3, 2009, 11:15 AM<br>
>> The implementation uses a stateless rules engine and the<br>
>> memory snapshots are<br>
>> taken when the engines are idle. The Patterns object, I<br>
>> expect is just the<br>
>> various condition and action nodes of each rule in the<br>
>> rulebase.<br>
>><br>
>> Thanks for your reply<br>
>> Barry<br>
>><br>
>><br>
>><br>
>> Greg Barton wrote:<br>
>> ><br>
>> > They have the same rules, but do they have the same<br>
>> data?<br>
>> ><br>
>> > When you refer to "number of patterns" do<br>
>> you mean the number of matches<br>
>> > between rules and working memory objects? The<br>
>> increase of that number is<br>
>> > entirely dependent on the structure of your rules. Do<br>
>> they modify objects<br>
>> > in working memory or add new objects?<br>
>> ><br>
>> > --- On Tue, 3/3/09, Barry K<br>
>> <<a href="mailto:barry.knapp@railinc.com">barry.knapp@railinc.com</a>> wrote:<br>
>> ><br>
>> >> From: Barry K <<a href="mailto:barry.knapp@railinc.com">barry.knapp@railinc.com</a>><br>
>> >> Subject: [rules-users] Patterns in Memory<br>
>> >> To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
>> >> Date: Tuesday, March 3, 2009, 10:47 AM<br>
>> >> Do the number of patterns in memory stabilize<br>
>> after the<br>
>> >> rulebase is created<br>
>> >> or can transactions increase the number of<br>
>> patterns?<br>
>> >><br>
>> >> Reason I ask is I have 2 servers with the same<br>
>> rules loaded<br>
>> >> and one shows<br>
>> >> 3000 patterns in memory but the other only shows<br>
>> 2300.<br>
>> >><br>
>> >><br>
>> >> Thanks<br>
>> >> Barry<br>
>> >> --<br>
>> >> View this message in context:<br>
>> >><br>
>> <a href="http://www.nabble.com/Patterns-in-Memory-tp22312660p22312660.html" target="_blank">http://www.nabble.com/Patterns-in-Memory-tp22312660p22312660.html</a><br>
>> >> Sent from the drools - user mailing list archive<br>
>> at<br>
>> >> Nabble.com.<br>
>> >><br>
>> >> _______________________________________________<br>
>> >> rules-users mailing list<br>
>> >> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
>> >><br>
>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
>> ><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > rules-users mailing list<br>
>> > <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
>> > <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
>> ><br>
>> ><br>
>><br>
>> --<br>
>> View this message in context:<br>
>> <a href="http://www.nabble.com/Patterns-in-Memory-tp22312660p22313261.html" target="_blank">http://www.nabble.com/Patterns-in-Memory-tp22312660p22313261.html</a><br>
>> Sent from the drools - user mailing list archive at<br>
>> Nabble.com.<br>
>><br>
>> _______________________________________________<br>
>> rules-users mailing list<br>
>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> rules-users mailing list<br>
> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
><br>
><br>
<br>
--<br>
</div></div>View this message in context: <a href="http://www.nabble.com/Patterns-in-Memory-tp22312660p22315031.html" target="_blank">http://www.nabble.com/Patterns-in-Memory-tp22312660p22315031.html</a><br>
<div><div><span id="q_11fcdc5f5cd96055_3" class="h4">- Mostrar texto das mensagens anteriores -</span></div><div class="h5">Sent from the drools - user mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>