Hi Sophie. We have run the BRMS for some time now, - not able to see this. If its still happening - are you able to share the log file for the server with us at all?<div><br class="webkit-block-placeholder"></div><div>Michael.<br>
<br><div class="gmail_quote">On Jan 23, 2008 10:29 PM, <<a href="mailto:sophie.ramel@tudor.lu">sophie.ramel@tudor.lu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Well, I'm pretty sure no agent hit the brms on my server last week, it's a<br>development server and I'm currently the only one using it, so the agent<br>wasn't instantiated (or perhaps I tried it once or twice at the beginning<br>
of the week, to check that it worked, but that's all).<br><br>The tomcat version was tomcat 5.5 (but here again, the error also occurs<br>in Jboss 3.2.8), jdk is jdk 1.5.0 , and the system is an old Red Hat 7.2.<br><div class="Ih2E3d">
<br>Regards,<br><br>Sophie<br><br><br><br><br>Michael Neale <<a href="mailto:michael.neale@gmail.com">michael.neale@gmail.com</a>><br>Sent by: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a><br>
</div>23/01/2008 12:39<br><div><div></div><div class="Wj3C7c">Please respond to<br>Rules Users List <<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>><br><br><br>To<br>Rules Users List <<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>><br>
cc<br>Rules Users List <<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>><br>Subject<br>Re: [rules-users] OutOfMemory with BRMS 4.0.3<br><br><br><br><br><br><br>Ok so yes the error is on the brms web app. The agent will poll the<br>
brms , so that may be causing it.<br><br>So, could you try to run the brms without the agent hitting it and see<br>if it happens ( will narrow it down massively)? Also, what tomcat, jdk<br>and I<br>Os version?<br><br>Sent from my iPhone<br>
<br>On 23/01/2008, at 1:54, <a href="mailto:sophie.ramel@tudor.lu">sophie.ramel@tudor.lu</a> wrote:<br><br>> Hello michael,<br>><br>>> Is the rule agent running on a separate server to the brms?<br>> The initial configuration was:<br>
> - BRMS in tomcat 5.5<br>> - server with RuleAgent in Jboss AS 3.2.8<br>><br>> But now I moved to this configuration:<br>> - server with RuleAgent in Jboss AS 3.2.8 (unchanged)<br>> - BRMS is also in the same jboss instance<br>
><br>> And in both cases I have the problem.<br>><br>>> Is the rule agent actually running when the error happens?<br>> No I don't think so.<br>> I don't have any exception before I try to go to a web page (either<br>
> of the<br>> BRMS, or of my other server in Jboss when the BRMS is in the same<br>> jboss<br>> instance), and then I get OufOfMemoryError: Java heap space. The<br>> RuleAgent<br>> is only instantiated when I send a specific request to my server<br>
> (and I'm<br>> not even sure it was called once before the last crash).<br>><br>>> Also that is an old version of jboss as?<br>> yes, it's Jboss application server 3.2.8 (I think it is the last and<br>
> only<br>> one in the 3.x series that works with JDK 1.5): I need to use an older<br>> version because of other compatibility issues of my server, but<br>> since I<br>> had exactly the same problem with Tomcat, I'm beginning to think it<br>
> may<br>> not be linked to the server version ...?<br>><br>> Regards,<br>><br>> Sophie<br>><br>><br>><br>><br>> Michael Neale <<a href="mailto:michael.neale@gmail.com">michael.neale@gmail.com</a>><br>
> Sent by: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a><br>> 22/01/2008 11:31<br>> Please respond to<br>> Rules Users List <<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>><br>
><br>><br>> To<br>> Rules Users List <<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>><br>> cc<br>> Rules Users List <<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>><br>
> Subject<br>> Re: [rules-users] OutOfMemory with BRMS 4.0.3<br>><br>><br>><br>><br>><br>><br>> Thanks sophie. A few more questions to narrow this down. Is the rule<br>> agent running on a separate server to the brms? Is the rule agent<br>
> actually running when the error happens? Also that is an old version<br>> of jboss as?<br>><br>> I guess the rest depends on your answers to the above.<br>><br>> Let me know.<br>><br>> Michael<br>
><br>><br>><br>> Sent from my iPhone<br>><br>> On 21/01/2008, at 23:03, <a href="mailto:sophie.ramel@tudor.lu">sophie.ramel@tudor.lu</a> wrote:<br>><br>>> Hello again,<br>>><br>>> After coming back after almost a week without touching the server,<br>
>> the<br>>> jboss application server with the BRMS also makes a OutOfMemory<br>>> exception<br>>> when I try to use the BRMS.<br>>><br>>>> When you get back to work if you could provide more info it would be<br>
>> great.<br>>> What kind of info do you need?<br>>> Here is what is done in my server code, to fire the rules:<br>>><br>>> Properties props=new Properties();<br>>> props.setProperty("newInstance", "false");<br>
>> props.setProperty("url", packageURL);<br>>> props.setProperty("localCacheDir", cacheDir);<br>>> props.setProperty("poll", "30");<br>>> props.setProperty("name", "Agent-"+pid);<br>
>> RuleAgent agent = RuleAgent.newRuleAgent(props);<br>>> RuleBase rb = agent.getRuleBase();<br>>> workingMemory=ruleBase.newStatefulSession();<br>>><br>>> and then we insert all objects in the working memory with "wm.insert<br>
>> (o);",<br>>> but recursively in order for all the objects to be directly<br>>> accessible in<br>>> rules (We've got a hierarchic structure, an XML file transformed in<br>>> Java<br>
>> by JAXB, so the insert method tests the accessor methods of the<br>>> object and<br>>> is called recursively on the accessors' results, before inserting the<br>>> object).<br>>><br>>> then we call:<br>
>> workingMemory.fireAllRules();<br>>> [...interprate results...]<br>>> workingMemory.dispose();<br>>><br>>><br>>> Best regards,<br>>><br>>> Sophie<br>>><br>>><br>
>><br>>> Michael Neale <<a href="mailto:michael.neale@gmail.com">michael.neale@gmail.com</a>><br>>> Sent by: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a><br>
>> 17/01/2008 23:34<br>>> Please respond to<br>>> Rules Users List <<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>><br>>><br>>><br>>> To<br>>> Rules Users List <<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>><br>
>> cc<br>>> Rules Users List <<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>><br>>> Subject<br>>> Re: [rules-users] OutOfMemory with BRMS 4.0.3<br>>><br>>><br>
>><br>>><br>>><br>>><br>>> Thanks sophie. Any oome I will investigate it just takes time to find<br>>> them. I have been running some overnight tests myself today. When you<br>>> get back to work if you could provide more info it would be great.<br>
>><br>>> If the agent is running then it polls the brms. So that could be one<br>>> of the possible causes.<br>>><br>>> Sent from my iPhone<br>>><br>>> On 17/01/2008, at 22:44, <a href="mailto:sophie.ramel@tudor.lu">sophie.ramel@tudor.lu</a> wrote:<br>
>><br>>>> Hi Michael,<br>>>><br>>>> I'm not at my company these days so I cannot check or make further<br>>>> tests.<br>>>> But yes, we use a rule agent and an URL to query the rule.<br>
>>> And it happens after 1-2 days whether we use the system or not, it<br>>>> doesn't<br>>>> seem to make any difference.<br>>>><br>>>> however, I'll check when returning, but I think it still worked<br>
>>> after a few<br>>>> days, now that I have moved the BRMS to the Jboss 3.2.3 app server.<br>>>><br>>>> thanks for trying to help me!<br>>>><br>>>> Sophie<br>>>><br>
>>> -----<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a> wrote: -----<br>>>><br>>>> To: "Rules Users List" <<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>><br>
>>> From: "Michael Neale" <<a href="mailto:michael.neale@gmail.com">michael.neale@gmail.com</a>><br>>>> Sent by: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a><br>
>>> Date: 01/17/2008 12:52AM<br>>>> Subject: Re: [rules-users] OutOfMemory with BRMS 4.0.3<br>>>><br>>>> Hi Sophie - how is the jboss "runtime" server querying this? via the<br>
>>> rule<br>>>> agent (and a URL)?<br>>>><br>>>> just trying to work out what the usage pattern is so we can<br>>>> reproduce it.<br>>>><br>>>> Michael.<br>>>><br>
>>><br>>>> On Jan 11, 2008 12:20 AM, <<br>>>> <a href="mailto:sophie.ramel@tudor.lu">sophie.ramel@tudor.lu</a><br>>>>> wrote:<br>>>><br>>>> Hello,<br>>>><br>
>>> I am using Drools BRMS 4.0.3 with tomcat 5.5.25, and I get<br>>>> OutOfMemory<br>>>> exceptions in tomcat regularly.<br>>>><br>>>> I recently changed the java option of tomcat to add "-Xmx512m", but<br>
>>> it<br>>>> only resulted in taking a little more time before crashing (3 days,<br>>>> instead of 1 before).<br>>>> The server has nearly no access - it's a development server which is<br>
>>> not a<br>>>> lot used at the moment - and there are only a few rules, for tests,<br>>>> so I<br>>>> really don't understand this error. I'm using java<br>>>> 1.5.0 on a linux<br>
>>> server.<br>>>><br>>>> The BRMS is accessed by web, to create and deploy the rules, and<br>>>> queried<br>>>> from another tool (on the same machine but in another server: in<br>
>>> JBoss),<br>>>> to insert data in a workingMemory and execute the rules from the<br>>>> deployed<br>>>> package URL. I call the dispose() method on the StatefulSession at<br>>>> the end<br>
>>> of the query (but this shouldn't be linked to this error, since this<br>>>> is in<br>>>> JBoss and the OutOfMemory occurs in tomcat...).<br>>>><br>>>> Any idea?<br>>>> Thanks,<br>
>>><br>>>> Sophie<br>>>> _______________________________________________<br>>>> rules-users mailing list<br>>>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
>>><br>>>><br>>>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>>>><br>>>><br>>>><br>
>>><br>>>> --<br>>>> Michael D Neale<br>>>> home:<br>>>> <a href="http://www.michaelneale.net" target="_blank">www.michaelneale.net</a><br>>>><br>>>> blog:<br>
>>><br>>>> <a href="http://michaelneale.blogspot.com" target="_blank">michaelneale.blogspot.com</a><br>>>><br>>>> _______________________________________________<br>>>> rules-users mailing list<br>
>>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>>>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
>>><br>>>><br>>>> _______________________________________________<br>>>> rules-users mailing list<br>>>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
>>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>>> _______________________________________________<br>>> rules-users mailing list<br>
>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
>><br>>><br>>> _______________________________________________<br>>> rules-users mailing list<br>>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
> _______________________________________________<br>> rules-users mailing list<br>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
><br>><br>> _______________________________________________<br>> rules-users mailing list<br>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Michael D Neale<br>home: <a href="http://www.michaelneale.net">www.michaelneale.net</a><br>blog: <a href="http://michaelneale.blogspot.com">michaelneale.blogspot.com</a>
</div>