Hi Pavel,<div><br></div><div>I&#39;ve changed it over to use a stateless session and I&#39;m seeing the same behavior. I&#39;ve done some debugging and it seems to be very slow loading up the SessionConfiguration due to all of the loading that happens in ChainedProperties. </div>
<div><br></div><div>Thanks,</div><div>Dave  <br><br><div class="gmail_quote">On 10 August 2010 13:53, 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;">Interesting. Normally it should be fast. Try to change your patter and<br>
load binary compiled serialized package from disk. You can find it in<br>
documentation.<br>
Also consider using stateless session. Do you really need stateful session?<br>
<div><div></div><div class="h5"><br>
Pavel<br>
<br>
2010/8/9 David Conde &lt;<a href="mailto:dconde@calomtech.com">dconde@calomtech.com</a>&gt;:<br>
&gt; Is it possible that this might be invoking the compiler when a session is<br>
&gt; created? I have all of the init code in the service start call and stored as<br>
&gt; members of the service for reuse but I must create a new knowledge session<br>
&gt; for each run.<br>
&gt; Any ideas?<br>
&gt; Thanks,<br>
&gt; Dave<br>
&gt;<br>
&gt; ---------- Forwarded message ----------<br>
&gt; From: David Conde &lt;<a href="mailto:dconde@calomtech.com">dconde@calomtech.com</a>&gt;<br>
&gt; Date: 9 August 2010 11:17<br>
&gt; Subject: Re: [rules-users] CPU Spike creating a StatefulKnowledgeSession<br>
&gt; using OSGi<br>
&gt; To: Rules Users List &lt;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt; The line that it spikes on is StatefulKnowledgeSession ksession =<br>
&gt; kbase.newStatefulKnowledgeSession();.<br>
&gt; Cheers,<br>
&gt; Dave<br>
&gt;<br>
&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;<br>
&gt;&gt; Is it session creation or rule compilation?<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; Good Morning,<br>
&gt;&gt; &gt; I now have drools running on the Spring DM-Server but I am seeing a CPU<br>
&gt;&gt; &gt; spike when creating a StatefulKnowledgeSession. I&#39;ve tested this outside<br>
&gt;&gt; &gt; of<br>
&gt;&gt; &gt; an OSGi environment and I don&#39;t see the spike. Does anyone know any<br>
&gt;&gt; &gt; settings<br>
&gt;&gt; &gt; that I can change that might make this go away?<br>
&gt;&gt; &gt; Thanks,<br>
&gt;&gt; &gt; Dave<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; David Conde<br>
&gt;&gt; &gt; CTO Calom Technologies<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;<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>
</div>