<!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 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 <br>
<br>
<div class="gmail_quote">On 10 August 2010 13:53, Pavel Tavoda <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:pavel.tavoda@gmail.com">pavel.tavoda@gmail.com</a>></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 <<a moz-do-not-send="true"
href="mailto:dconde@calomtech.com">dconde@calomtech.com</a>>:<br>
> Is it possible that this might be invoking the
compiler when a session is<br>
> created? I have all of the init code in the service
start call and stored as<br>
> members of the service for reuse but I must create
a new knowledge session<br>
> for each run.<br>
> Any ideas?<br>
> Thanks,<br>
> Dave<br>
><br>
> ---------- Forwarded message ----------<br>
> From: David Conde <<a moz-do-not-send="true"
href="mailto:dconde@calomtech.com">dconde@calomtech.com</a>><br>
> Date: 9 August 2010 11:17<br>
> Subject: Re: [rules-users] CPU Spike creating a
StatefulKnowledgeSession<br>
> using OSGi<br>
> To: Rules Users List <<a moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>><br>
><br>
><br>
> The line that it spikes on
is StatefulKnowledgeSession ksession =<br>
> kbase.newStatefulKnowledgeSession();.<br>
> Cheers,<br>
> Dave<br>
><br>
> On 9 August 2010 11:09, Pavel Tavoda <<a
moz-do-not-send="true"
href="mailto:pavel.tavoda@gmail.com">pavel.tavoda@gmail.com</a>>
wrote:<br>
>><br>
>> Is it session creation or rule compilation?<br>
>><br>
>> Pavel<br>
>><br>
>> 2010/8/9 David Conde <<a
moz-do-not-send="true"
href="mailto:dconde@calomtech.com">dconde@calomtech.com</a>>:<br>
>> > Good Morning,<br>
>> > I now have drools running on the Spring
DM-Server but I am seeing a CPU<br>
>> > spike when creating
a StatefulKnowledgeSession. I've tested this outside<br>
>> > of<br>
>> > an OSGi environment and I don't see the
spike. Does anyone know any<br>
>> > settings<br>
>> > that I can change that might make this go
away?<br>
>> > Thanks,<br>
>> > Dave<br>
>> ><br>
>> > --<br>
>> > David Conde<br>
>> > CTO Calom Technologies<br>
>> ><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>
>> ><br>
>> ><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>
><br>
><br>
><br>
><br>
><br>
><br>
><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>
><br>
><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>