I'm doing some pattern analysis on large quantities of records, where
I have several hundred thousand facts and a few rules doing things
like string matching and aggregation. I have a stateless session,
which I populate with my rules and then execute against a big list of
all the facts.
The multithread options is documented in the Drools Expert user guide,
but there is no guidance on how to use it other than to set those two
options.
Cheers,
Tim
2010/10/20 Michael Anstis <michael.anstis(a)gmail.com>:
I'm probably not the one to answer your question; but could you
please
explain a little more how you are using drools?
I believe partitioning is related to drools-fusion's capabilities rather
than a generic multi-threading facility.
I also believe it needs to be used in conjunction with entry-points.
A little more information would benefit others' replies.
Thanks,
Mike
On 20 October 2010 11:53, Tim 4076 <tm4076(a)gmail.com> wrote:
>
> I am attempting to use the multi thread knowledgebase partitioning
> feature on drools 5.1, but am not having much luck. Using a stateless
> session with MultithreadEvaluationOption.YES and
> MaxThreadsOption.get(2) always gives a NullPointer exception:
>
> java.lang.NullPointerException
> at
> org.drools.reteoo.PartitionManager.waitForPendingTasks(PartitionManager.java:105)
> at
>
org.drools.common.AbstractWorkingMemory.prepareToFireActivation(AbstractWorkingMemory.java:2090)
> at
> org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:845)
> at
> org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1071)
> at
> org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:785)
> at
> org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:751)
> at
>
org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:218)
> at
>
org.drools.impl.StatelessKnowledgeSessionImpl.execute(StatelessKnowledgeSessionImpl.java:302)
> at com.sample.DroolsTest.main(DroolsTest.java:70)
>
> This looks similar to JIRA 2125, which was raised over a year ago.
> Does this mean that this feature is completely non-functional?
>
>
> Thanks,
> Tim
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users