for batch of execution(i.e 1000 facts), I create stateless session in consumer and execute as given below. this.ruleBase.newStatelessSession().execute(facts);
techy wrote: > > Hello > My app is functioning consumer/producer model. > 1.Producer reads the data from DB and inserts to blocking queue > 2.Consumer reads the data from queue and execute the rules using drools > stateless session. > Both producer and consumer run asynchronously. > > in my testing I found the following > > 1. for 1000 facts at a time and no rules in drl, cpu usage is maintained > at 25-30% in my PC(Intel core 2 CPU,2.13 GH,2G RAM) - with no rules in > drl, Is this cpu usage acceptable? > 2. for 1000 facts at a time and ~60 rules in drl, cpu usage is maintained > at 50-60% on the same PC. > 3. If I have 1 sec wait between each execution of rules in consumer, then > cpu usage is maintained < 5% > > high CPU usage is being big concern to me. Is this expected while using > drools? Do others see same cpu usage too? Please share your thoughts. > appreciate your input. > > Thanks > > -- View this message in context: http://www.nabble.com/high-cpu-usage-tp22691131p22691320.html Sent from the drools - user mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
