Re: [rules-users] Multi-threading inefficiency caused by static class synchronization?

2012-12-11 Thread ping
Thank you for the advice. That's a good solution if we choose to deploy the rule engines as standalone services. We are also evaluating deploy the rule engine as a embedded component in legacy applications. In this case they have to be in the same JVM. -Ping -- View this message in co

Re: [rules-users] Multi-threading inefficiency caused by static class synchronization?

2012-12-11 Thread ping
nt, I need to reuse the stateful session. In that case, will the memory be a problem if I keep the session running too long without dispose it? Or I need to create a new session once every hour or day? Or maybe retracting the facts will keep the memory footprint low? -Ping -- View this messa

Re: [rules-users] Multi-threading inefficiency caused by static class synchronization?

2012-12-10 Thread ping
I tried profiling my test program and found that all thread spent most of their time blocking or waiting for the same lock: org.drools.runtime.process.ProcessRuntimeFactory.getProcessRuntimeFactoryService() and org.drools.common.AbstractRuleBase.lock() examples: Thread-6 [WAITING] CPU time: 1s j

Re: [rules-users] Multi-threading inefficiency caused by static class synchronization?

2012-12-10 Thread ping
hi Salaboy, Thank you for your reply. I read some of your blog posts and find them very helpful for my learning of Drools. But for the question I raised here, "create multiple stateless sessions with the same rules in different threads" is exactly what I was trying. But I found that the rule engin

[rules-users] Multi-threading inefficiency caused by static class synchronization?

2012-12-10 Thread ping
found that most of time threads were blocked by static class locks like: public static synchronized ProcessRuntimeFactoryService getProcessRuntimeFactoryService() Anyone has experience scaling up a stateless drools engine? Thanks a lot. -Ping -- View this message in context: http://drool

RE: [rules-users] memory issue when listening to market data

2008-09-29 Thread Cheng, Ping
hanks. -Ping -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ingomar Otter Sent: Monday, September 29, 2008 12:47 PM To: Rules Users List Subject: Re: [rules-users] memory issue when listening to market data Given the information remote diagnosis is not feasib

RE: [rules-users] memory issue when listening to market data

2008-09-29 Thread Cheng, Ping
It's Linux 2.6.9-42.0.10.ELsmp, with Sun jdk1.5.0_08. If top is not reliable, how should I detect if there is any native memory leak? Thanks. -Ping From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Augusto Rodriguez Sent: Monday, Septemb

[rules-users] memory issue when listening to market data

2008-09-29 Thread Cheng, Ping
thing when it's very busy? What is supposed to happen if drools could not handle the work load? Thanks for your help. -Ping - The information contained in the linked e-mail transmission and any attachments may be privileged and confidential and i

[rules-users] RuleBase was not updated correctly when use RuleAgent

2008-02-05 Thread Cheng, Ping
m log. The new rule I just added works fine, but the old rule looks get screwed. All rules work fine if I restart my program. Seems that the RuleAgent did not update all rules correctly, I wonder if anyone has solution for this? Thanks. -Ping - The i