<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 10/08/2010 17:22, David Conde wrote:
    <blockquote
      cite="mid:AANLkTik-WnASgDGep=w6HHJz-6r6jrA+bFpFWHrTpEp8@mail.gmail.com"
      type="cite">Hi Pavel,
      <div><br>
      </div>
      <div>I've changed it over to use a stateless session and I'm
        seeing the same&nbsp;behavior. I'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. <br>
      </div>
    </blockquote>
    it could well be that. <br>
    <br>
    When looking for property we search the available classpaths. With
    OSGi you have to add a lot of classpaths to it, so it searches them
    all... <br>
    <br>
    Other than telling it not to search the classpath for .properties
    files, not sure what else we can do here...<br>
    <br>
    Mark<br>
    <blockquote
      cite="mid:AANLkTik-WnASgDGep=w6HHJz-6r6jrA+bFpFWHrTpEp8@mail.gmail.com"
      type="cite">
      <div><br>
      </div>
      <div>Thanks,</div>
      <div>Dave&nbsp;&nbsp;<br>
        <br>
        <div class="gmail_quote">On 10 August 2010 13:53, Pavel Tavoda <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:pavel.tavoda@gmail.com">pavel.tavoda@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            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 class="h5"><br>
                Pavel<br>
                <br>
                2010/8/9 David Conde &lt;<a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  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&nbsp;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
                  moz-do-not-send="true"
                  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
                  moz-do-not-send="true"
                  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&nbsp;StatefulKnowledgeSession. I've tested this outside<br>
                &gt;&gt; &gt; of<br>
                &gt;&gt; &gt; an OSGi environment and I don'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 moz-do-not-send="true"
                  href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
                &gt;&gt; &gt; <a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
                &gt;&gt; <a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
                &gt; <a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
                <a moz-do-not-send="true"
                  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>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>