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