[rules-users] OutOfMemory with BRMS 4.0.3

Michael Neale michael.neale at gmail.com
Tue Jan 22 05:06:09 EST 2008


Thanks sophie. A few more questions to narrow this down. Is the rule  
agent running on a separate server to the brms? Is the rule agent  
actually running when the error happens? Also that is an old version  
of jboss as?

I guess the rest depends on your answers to the above.

Let me know.

Michael



Sent from my iPhone

On 21/01/2008, at 23:03, sophie.ramel at tudor.lu wrote:

> Hello again,
>
> After coming back after almost a week without touching the server, the
> jboss application server with the BRMS also makes a OutOfMemory  
> exception
> when I try to use the BRMS.
>
>> When you get back to work if you could provide more info it would be
> great.
> What kind of info do you need?
> Here is what is done in my server code, to fire the rules:
>
> Properties props=new Properties();
> props.setProperty("newInstance", "false");
> props.setProperty("url", packageURL);
> props.setProperty("localCacheDir", cacheDir);
> props.setProperty("poll", "30");
> props.setProperty("name", "Agent-"+pid);
> RuleAgent agent = RuleAgent.newRuleAgent(props);
> RuleBase rb = agent.getRuleBase();
> workingMemory=ruleBase.newStatefulSession();
>
> and then we insert all objects in the working memory with "wm.insert 
> (o);",
> but recursively in order for all the objects to be directly  
> accessible in
> rules (We've got a hierarchic structure, an XML file transformed in  
> Java
> by JAXB, so the insert method tests the accessor methods of the  
> object and
> is called recursively on the accessors' results, before inserting the
> object).
>
> then we call:
> workingMemory.fireAllRules();
> [...interprate results...]
> workingMemory.dispose();
>
>
> Best regards,
>
> Sophie
>
>
>
> Michael Neale <michael.neale at gmail.com>
> Sent by: rules-users-bounces at lists.jboss.org
> 17/01/2008 23:34
> Please respond to
> Rules Users List <rules-users at lists.jboss.org>
>
>
> To
> Rules Users List <rules-users at lists.jboss.org>
> cc
> Rules Users List <rules-users at lists.jboss.org>
> Subject
> Re: [rules-users] OutOfMemory with BRMS 4.0.3
>
>
>
>
>
>
> Thanks sophie. Any oome I will investigate it just takes time to find
> them. I have been running some overnight tests myself today. When you
> get back to work if you could provide more info it would be great.
>
> If the agent is running then it polls the brms. So that could be one
> of the possible causes.
>
> Sent from my iPhone
>
> On 17/01/2008, at 22:44, sophie.ramel at tudor.lu wrote:
>
>> Hi Michael,
>>
>> I'm not at my company these days so I cannot check or make further
>> tests.
>> But yes, we use a rule agent and an URL to query the rule.
>> And it happens after 1-2 days whether we use the system or not, it
>> doesn't
>> seem to make any difference.
>>
>> however, I'll check when returning, but I think it still worked
>> after a few
>> days, now that I have moved the BRMS to the Jboss 3.2.3 app server.
>>
>> thanks for trying to help me!
>>
>> Sophie
>>
>> -----rules-users-bounces at lists.jboss.org wrote: -----
>>
>> To: "Rules Users List" <rules-users at lists.jboss.org>
>> From: "Michael Neale" <michael.neale at gmail.com>
>> Sent by: rules-users-bounces at lists.jboss.org
>> Date: 01/17/2008 12:52AM
>> Subject: Re: [rules-users] OutOfMemory with BRMS 4.0.3
>>
>> Hi Sophie - how is the jboss "runtime" server querying this? via the
>> rule
>> agent (and a URL)?
>>
>> just trying to work out what the usage pattern is so we can
>> reproduce it.
>>
>> Michael.
>>
>>
>> On Jan 11, 2008 12:20 AM,  <
>> sophie.ramel at tudor.lu
>>> wrote:
>>
>> Hello,
>>
>> I am using Drools BRMS 4.0.3 with tomcat 5.5.25, and I get  
>> OutOfMemory
>> exceptions in tomcat regularly.
>>
>> I recently changed the java option of tomcat to add "-Xmx512m", but  
>> it
>> only resulted in taking a little more time before crashing (3 days,
>> instead of 1 before).
>> The server has nearly no access - it's a development server which is
>> not a
>> lot used at the moment - and there are only a few rules, for tests,
>> so I
>> really don't understand this error. I'm using java
>> 1.5.0 on a linux
>> server.
>>
>> The BRMS is accessed by web, to create and deploy the rules, and
>> queried
>> from another tool (on the same machine but in another server: in
>> JBoss),
>> to insert data in a workingMemory and execute the rules from the
>> deployed
>> package URL. I call the dispose() method on the StatefulSession at
>> the end
>> of the query (but this shouldn't be linked to this error, since this
>> is in
>> JBoss and the OutOfMemory occurs in tomcat...).
>>
>> Any idea?
>> Thanks,
>>
>> Sophie
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>>
>>
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>>
>>
>> --
>> Michael D Neale
>> home:
>> www.michaelneale.net
>>
>> blog:
>>
>> michaelneale.blogspot.com
>>
>> _______________________________________________
>> 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
> _______________________________________________
> 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



More information about the rules-users mailing list