[rules-users] CPU Spike creating a StatefulKnowledgeSession using OSGi

David Conde dconde at calomtech.com
Mon Aug 9 10:09:40 EDT 2010


Is it possible that this might be invoking the compiler when a session is
created? I have all of the init code in the service start call and stored as
members of the service for reuse but I must create a new knowledge session
for each run.

Any ideas?

Thanks,
Dave

---------- Forwarded message ----------
From: David Conde <dconde at calomtech.com>
Date: 9 August 2010 11:17
Subject: Re: [rules-users] CPU Spike creating a StatefulKnowledgeSession
using OSGi
To: Rules Users List <rules-users at lists.jboss.org>


The line that it spikes on is StatefulKnowledgeSession ksession =
kbase.newStatefulKnowledgeSession();.

Cheers,
Dave


On 9 August 2010 11:09, Pavel Tavoda <pavel.tavoda at gmail.com> wrote:

> Is it session creation or rule compilation?
>
> Pavel
>
> 2010/8/9 David Conde <dconde at calomtech.com>:
> > Good Morning,
> > I now have drools running on the Spring DM-Server but I am seeing a CPU
> > spike when creating a StatefulKnowledgeSession. I've tested this outside
> of
> > an OSGi environment and I don't see the spike. Does anyone know any
> settings
> > that I can change that might make this go away?
> > Thanks,
> > Dave
> >
> > --
> > David Conde
> > CTO Calom Technologies
> >
> >
> > _______________________________________________
> > rules-users mailing list
> > rules-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100809/a28b225a/attachment.html 


More information about the rules-users mailing list