Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-15 Thread lhorton
Sorry, there was a JIRA link in the message thread that I didn't notice. https://issues.jboss.org/browse/JBRULES-1325 says the leak was fixed in 5.0 -- View this message in context: http://drools.46999.n3.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-tp54778p4020292.html Sent from the

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-14 Thread Mark Proctor
Do you have a JIRA to reference for this? Without that it's hard to check. Mark On 12 Oct 2012, at 23:24, lhorton lhor...@abclegal.com wrote: Has this issue been fixed, or is it still necessary to remove any event listeners so that the session is freed? -- View this message in context:

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-12 Thread Wolfgang Laun
Hi, a nice problem... see below On 12/10/2012, mohan mohan.narang...@gmail.com wrote: Hi laune, I'll explain the process briefly. I’m getting voice call events from our billing system. We want give some offers if call made inside specific cell (uploaded this fact to WM in advance) . But we

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-12 Thread mohan
Hi laune, really appreciate your valuable time dedication on this. Yes I did a mistake that there is no NotificationEvent and that should be OfferedEvent. Primary keys of the OfferedEvent are mobileNo offerId. i.e should not send particular offer notification to perticuler mobile within next

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-12 Thread lhorton
Has this issue been fixed, or is it still necessary to remove any event listeners so that the session is freed? -- View this message in context: http://drools.46999.n3.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-tp54778p4020267.html Sent from the Drools: User forum mailing list

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-11 Thread Wolfgang Laun
On 11/10/2012, mohan mohan.narang...@gmail.com wrote: Hi laune, Assume we continuously getting vast number of facts or events from a stream and we want to reasoning over particular time window (accumulate number of events on this window) how we could achieve the same? Guess we cannot call

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-11 Thread mohan
Hi laune, Yes i already used @expires(24h) metadata for event. So each event will expire after 24 hours. But per day we are getting over 1000k events and inserting it into working memory will cause to java.lang.OutOfMemoryError. Guess increase Java heap size not best solution either. How we can

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-11 Thread mohan
Hi laune, I'll explain the process briefly. I’m getting voice call events from our billing system. We want give some offers if call made inside specific cell (uploaded this fact to WM in advance) . But we have to give offer only once per day. So repeated calls inside this cell won’t eligible for

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-10 Thread Wolfgang Laun
Just repeat this, as often as required, with as many facts in facts as you want: // copy-pasted from the API documentation ;-) StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession(); for( Object fact : facts ) { ksession.insert( fact ); } ksession.fireAllRules();

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-10 Thread Mahadevappa, Shobha
Subject: Re: [rules-users] java.lang.OutOfMemoryError: Java heap space Just repeat this, as often as required, with as many facts in facts as you want: // copy-pasted from the API documentation ;-) StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession(); for( Object fact : facts

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-10 Thread Wolfgang Laun
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun Sent: 10 October 2012 PM 12:58 To: Rules Users List Subject: Re: [rules-users] java.lang.OutOfMemoryError: Java heap space Just repeat this, as often as required, with as many facts in facts as you want: // copy-pasted from

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-10 Thread Brenda1636
Thank you! I did write code for this last night and ran it, but didn't get the results I wanted so I was thinking the session was disposed before it had a chance to run the rules. But the real issue was that I did not write my rule correctly. Thanks again! -- View this message in context:

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-10 Thread mohan
Hi laune, Assume we continuously getting vast number of facts or events from a stream and we want to reasoning over particular time window (accumulate number of events on this window) how we could achieve the same? Guess we cannot call dispose() after fireAllRules(). -- View this message in

[rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-09 Thread Brenda1636
I've seen many posts about users receiving a java.lang.OutOfMemoryError: Java heap space error. The answer have been to increase heap space. I was wondering if there is another way around this. I have about 10,000 facts that I want to bring into working memory. Is there a way to insert some of

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space on Drools 4.0.4

2008-01-21 Thread Christopher . Mathrusse
PROTECTED] Sent by: [EMAIL PROTECTED] 01/21/2008 10:38 PM Please respond to Rules Users List rules-users@lists.jboss.org To Rules Users List rules-users@lists.jboss.org cc Subject [rules-users] java.lang.OutOfMemoryError: Java heap space on Drools 4.0.4 Hi, I am getting the following outofmemory

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2007-11-12 Thread vdelbart
Hello, I add this 4 lines in my code before the session.dispose() and the problem disapear : session.removeEventListener((WorkingMemoryEventListener)logger); session.removeEventListener((AgendaEventListener)logger);

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2007-11-12 Thread Edson Tirelli
Thanks for reporting and providing workaround. I will look into fixing that. 2007/11/12, vdelbart [EMAIL PROTECTED]: Hello, I add this 4 lines in my code before the session.dispose() and the problem disapear : session.removeEventListener((WorkingMemoryEventListener)logger);

[rules-users] java.lang.OutOfMemoryError: Java heap space

2007-11-09 Thread vdelbart
Hello, In my tests of the 4.0.3, I have some : java.lang.OutOfMemoryError. So, I try a simple test with 10.000 sequential execution of 1 rule with no context and just a workingmemorylogger and I have the error : java.lang.OutOfMemoryError: Java heap space My code is : public class