ChainedProperties lives in org.drools.util.ChainedProperties and is created in SessionConfiguration(). The call is called during StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();.<br><br><div class="gmail_quote">
On 10 August 2010 17:36, Pavel Tavoda <span dir="ltr">&lt;<a href="mailto:pavel.tavoda@gmail.com">pavel.tavoda@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Can&#39;t you avoid using ChainedProperties, what is it? Can you send<br>
piece of code where you create session?<br>
<br>
Pavel<br>
<br>
<br>
2010/8/10 David Conde &lt;<a href="mailto:dconde@calomtech.com">dconde@calomtech.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi Pavel,<br>
&gt; I&#39;ve changed it over to use a stateless session and I&#39;m seeing the<br>
&gt; same behavior. I&#39;ve done some debugging and it seems to be very slow loading<br>
&gt; up the SessionConfiguration due to all of the loading that happens in<br>
&gt; ChainedProperties.<br>
&gt; Thanks,<br>
&gt; Dave<br>
&gt;<br>
&gt; On 10 August 2010 13:53, Pavel Tavoda &lt;<a href="mailto:pavel.tavoda@gmail.com">pavel.tavoda@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Interesting. Normally it should be fast. Try to change your patter and<br>
&gt;&gt; load binary compiled serialized package from disk. You can find it in<br>
&gt;&gt; documentation.<br>
&gt;&gt; Also consider using stateless session. Do you really need stateful<br>
&gt;&gt; session?<br>
&gt;&gt;<br>
&gt;&gt; Pavel<br>
&gt;&gt;<br>
&gt;&gt; 2010/8/9 David Conde &lt;<a href="mailto:dconde@calomtech.com">dconde@calomtech.com</a>&gt;:<br>
&gt;&gt; &gt; Is it possible that this might be invoking the compiler when a session<br>
&gt;&gt; &gt; is<br>
&gt;&gt; &gt; created? I have all of the init code in the service start call and<br>
&gt;&gt; &gt; stored as<br>
&gt;&gt; &gt; members of the service for reuse but I must create a new knowledge<br>
&gt;&gt; &gt; session<br>
&gt;&gt; &gt; for each run.<br>
&gt;&gt; &gt; Any ideas?<br>
&gt;&gt; &gt; Thanks,<br>
&gt;&gt; &gt; Dave<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ---------- Forwarded message ----------<br>
&gt;&gt; &gt; From: David Conde &lt;<a href="mailto:dconde@calomtech.com">dconde@calomtech.com</a>&gt;<br>
&gt;&gt; &gt; Date: 9 August 2010 11:17<br>
&gt;&gt; &gt; Subject: Re: [rules-users] CPU Spike creating a StatefulKnowledgeSession<br>
&gt;&gt; &gt; using OSGi<br>
&gt;&gt; &gt; To: Rules Users List &lt;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The line that it spikes on is StatefulKnowledgeSession ksession =<br>
&gt;&gt; &gt; kbase.newStatefulKnowledgeSession();.<br>
&gt;&gt; &gt; Cheers,<br>
&gt;&gt; &gt; Dave<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On 9 August 2010 11:09, Pavel Tavoda &lt;<a href="mailto:pavel.tavoda@gmail.com">pavel.tavoda@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Is it session creation or rule compilation?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Pavel<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; 2010/8/9 David Conde &lt;<a href="mailto:dconde@calomtech.com">dconde@calomtech.com</a>&gt;:<br>
&gt;&gt; &gt;&gt; &gt; Good Morning,<br>
&gt;&gt; &gt;&gt; &gt; I now have drools running on the Spring DM-Server but I am seeing a<br>
&gt;&gt; &gt;&gt; &gt; CPU<br>
&gt;&gt; &gt;&gt; &gt; spike when creating a StatefulKnowledgeSession. I&#39;ve tested this<br>
&gt;&gt; &gt;&gt; &gt; outside<br>
&gt;&gt; &gt;&gt; &gt; of<br>
&gt;&gt; &gt;&gt; &gt; an OSGi environment and I don&#39;t see the spike. Does anyone know any<br>
&gt;&gt; &gt;&gt; &gt; settings<br>
&gt;&gt; &gt;&gt; &gt; that I can change that might make this go away?<br>
&gt;&gt; &gt;&gt; &gt; Thanks,<br>
&gt;&gt; &gt;&gt; &gt; Dave<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; --<br>
&gt;&gt; &gt;&gt; &gt; David Conde<br>
&gt;&gt; &gt;&gt; &gt; CTO Calom Technologies<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; &gt; rules-users mailing list<br>
&gt;&gt; &gt;&gt; &gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt;&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; rules-users mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; rules-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<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>David Conde<br>CTO Calom Technologies<br><br>Mail: <a href="mailto:dconde@calomtech.com" target="_blank">dconde@calomtech.com</a><br>Mobile: 00353 86 0623397<br>
<br>Calom Technologies Ltd (registered in Ireland)<br>Registered Number: 460246<br>Registered Address: NCI Research and Business Centre, Mayor St, IFSC, Dublin 1, Ireland<br>