Re: [rules-users] Out of Memory Issue of JBoss Enginedeployed onIBMWAS 6.0.2.7
by Joel G. Rivera-González
edson...
compared with previus drools versions..
is drools 3 more memory intensive than version 2.1?
at least on 2.5 my rules take over 250 megs..
with 2.1 it starts with around 100...
Joel G. Rivera-Gonzalez
PRT
----- Original Message ----
From: Edson Tirelli <tirelli(a)post.com>
To: Rules Users List <rules-users(a)lists.jboss.org>
Sent: Tuesday, January 16, 2007 4:45:57 PM
Subject: Re: [rules-users] Out of Memory Issue of JBoss Enginedeployed onIBMWAS 6.0.2.7
Dejia,
Just to explain what we are talking about: antlr is the parser generator
used by JBoss Rules. So, it generates the code to parse the DRL files.
One part of the parser is a DFA that tries to predict which lexer rule
should be used by the lexer. What you see in the stack trace, is not the
same class loaded hundreds of times, but it is each of the DFA and lexer
inner classes.
There is not an easy way to "control" what antlr does when generating
the DFA and it can indeed use huge amounts of memory as it now has a
variable lookahed (LL(*)). We re-wrote some lexer rules for the new
version to workaround and reduce DFA size and memory requirements, but
it is not a simple thing to do.
Ok, this is just a highlevel overview.
In your specific case, my recomendation is that we work together toward
a possible solution that may or may not require the release of a new
version. This is because simply upgrading the antlr version may not
solve the issue. It may require some grammar rule rewriting or it may
require reconfiguration of your deploy environment.
So, to start with, can you provide:
* your full stacktrace for the out of memory error?
* your hardware and software environment, specially your memory settings
for the jvm (in websphere it is called server if I remember correctly)
where you are deploying the application?
* information about the rulebase you are using? (number of rules, size
of the rule files, samples of rules that may be offending memory the most)
I'm asking this because we have other cases of rulebases successfully
deployed to WebSphere environment without memory problems, so we need to
check if rulebase size is the only difference between your environment
and other environments or if there is also issues regarding type of
rules you are writing that are particularly stressing the lexer.
[]s
Edson
Dejia Wang wrote:
> Thanks Mark. However, with the OOM issue in JBoss Rules 3.0.5, we
> cannot really use it in enterprise environment. It would be good if we
> can get 3.0.6 out sooner.
>
> BTW, have your guys check in the fix? Is there anything we can help to
> get 3.0.6 out sooner?
>
> Thanks- Dejia
>
> ------------------------------------------------------------------------
>
> *From:* Mark Proctor [mailto:mproctor@codehaus.org]
> *Sent:* Monday, January 15, 2007 6:33 PM
> *To:* Rules Users List
> *Subject:* Re: [rules-users] Out of Memory Issue of JBoss
> Enginedeployed onIBMWAS 6.0.2.7
>
> Antlr 2.7.7 is just for the StringTemplate stuff, we are actually
> using Antlr 3. You could attempt to regenerate the grammar again with
> latest versions of antlrworks and antlr, although I'm not sure if it
> works without updates to the drl. Not sure when 3.0.6 will be out,
> probably not for a few weeks.
>
> Mark
> Dejia Wang wrote:
>
> BTW, I noticed that current stable version of antlr is 2.7.7 (released
> November 1, 2006). Rule 3.0.5 has 2.7.6.
>
> Edson, will antlr 2.7.7 work?
>
> Thanks- Dejia
>
> ------------------------------------------------------------------------
>
> *From:* Dejia Wang
> *Sent:* Monday, January 15, 2007 5:40 PM
> *To:* 'Rules Users List'
> *Subject:* RE: [rules-users] Out of Memory Issue of JBoss Engine
> deployed onIBMWAS 6.0.2.7
>
> This is good news. Thanks very much, Mark and Edson! BTW, when will
> 3.0.6 release be out?
>
> - Dejia
>
> ------------------------------------------------------------------------
>
> *From:* Mark Proctor [mailto:mproctor@codehaus.org]
> *Sent:* Monday, January 15, 2007 4:33 PM
> *To:* Rules Users List
> *Subject:* Re: [rules-users] Out of Memory Issue of JBoss Engine
> deployed onIBMWAS 6.0.2.7
>
> I believe this was a bug in antlr that is now fixed. I'll see if we
> can get a 3.0.6 release done some time updated to the latest antlr.
> Edson knows more about this, as it was a bug he investigated.
>
> Mark
> Dejia Wang wrote:
>
> BTW, I am using the JBoss Rules 3.0.5.
>
> ------------------------------------------------------------------------
>
> *From:* Dejia Wang
> *Sent:* Monday, January 15, 2007 3:56 PM
> *To:* rules-users(a)lists.jboss.org <mailto:rules-users@lists.jboss.org>
> *Subject:* [rules-users] Out of Memory Issue of JBoss Engine deployed
> on IBMWAS 6.0.2.7
> *Importance:* High
>
> Hi All,
>
> I ran into OOM (Out of Memory) issue of JBoss Rule Engine deployed on
> IBM WAS 6.0.2.7. Below is the log
>
> …
>
> [Loaded org.antlr.runtime.DFA from
> file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Cell/xxx.ear/lib/antlr-3.0ea8.jar
> <file:///D:%5CWebSphere%5CAppServer%5Cprofiles%5CAppSrv01%5CinstalledApps%5CxxxNode02Cell%5Cxxx.ear%5Clib%5Cantlr-3.0ea8.jar>]
>
> [Loading superclass and interfaces of org/antlr/runtime/DFA]
>
> [Preparing org/antlr/runtime/DFA]
>
> [Loaded org.antlr.runtime.DFA$State from
> file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Cell/xxxApplications.ear/lib/antlr-3.0ea8.jar
> <file:///D:%5CWebSphere%5CAppServer%5Cprofiles%5CAppSrv01%5CinstalledApps%5CxxxNode02Cell%5CxxxApplications.ear%5Clib%5Cantlr-3.0ea8.jar>]
>
> [Loading superclass and interfaces of org/antlr/runtime/DFA$State]
>
> [Loaded org.drools.lang.RuleParserLexer$1 from
> file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Cell/xxxApplications.ear/lib/drools-compiler-3.0.jar
> <file:///D:%5CWebSphere%5CAppServer%5Cprofiles%5CAppSrv01%5CinstalledApps%5CxxxNode02Cell%5CxxxApplications.ear%5Clib%5Cdrools-compiler-3.0.jar>]
>
> [Loading superclass and interfaces of org/drools/lang/RuleParserLexer$1]
>
> [Loaded org.drools.lang.RuleParserLexer$2 from
> file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Cell/
> <file:///D:%5CWebSphere%5CAppServer%5Cprofiles%5CAppSrv01%5CinstalledApps%5CxxxNode02Cell%5C>
> xxxApplications.ear/lib/drools-compiler-3.0.jar]
>
> [Loading superclass and interfaces of org/drools/lang/RuleParserLexer$2]
>
> [Loaded org.drools.lang.RuleParserLexer$3 from
> file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Cell/
> <file:///D:%5CWebSphere%5CAppServer%5Cprofiles%5CAppSrv01%5CinstalledApps%5CxxxNode02Cell%5C>
> xxxApplications.ear/lib/drools-compiler-3.0.jar]
>
> [Loading superclass and interfaces of org/drools/lang/RuleParserLexer$3]
>
> [Loaded org.drools.lang.RuleParserLexer$4 from
> file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Cell/
> <file:///D:%5CWebSphere%5CAppServer%5Cprofiles%5CAppSrv01%5CinstalledApps%5CxxxNode02Cell%5C>
> xxxApplications.ear/lib/drools-compiler-3.0.jar]
>
> [Loading superclass and interfaces of org/drools/lang/RuleParserLexer$4]
>
> ….
>
> [Loaded org.drools.lang.RuleParserLexer$228 from
> file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Cell/xxxApplications.ear/lib/drools-compiler-3.0.jar
> <file:///D:%5CWebSphere%5CAppServer%5Cprofiles%5CAppSrv01%5CinstalledApps%5CxxxNode02Cell%5CxxxApplications.ear%5Clib%5Cdrools-compiler-3.0.jar>]
>
> [Loading superclass and interfaces of org/drools/lang/RuleParserLexer$228]
>
> …
>
> It looks like it loaded the same class hundreds of times until it
> exhausts the memory.
>
> Any idea why this happens and how to fix this?
>
> Thanks- Dejia
>
>
>
>
>
>
>
>
>
>
>
>
>
>------------------------------------------------------------------------
>
>
>
>
>
>
>
>
>
>
>
>
>_______________________________________________
>
>rules-users mailing list
>
>rules-users(a)lists.jboss.org <mailto:rules-users@lists.jboss.org>
>
>https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>
>
>
>
>------------------------------------------------------------------------
>
>
>
>
>_______________________________________________
>
>rules-users mailing list
>
>rules-users(a)lists.jboss.org <mailto:rules-users@lists.jboss.org>
>
>https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>rules-users mailing list
>rules-users(a)lists.jboss.org
>https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
Office: +55 11 3124-6000
Mobile: +55 11 9218-4151
JBoss, a division of Red Hat @ www.jboss.com
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
17 years, 11 months
Forall Conditional Element
by Edson Tirelli
All,
JBRULES-218: http://jira.jboss.com/jira/browse/JBRULES-218 adding
support to the "forall" conditional element is commited into trunk.
You all are welcome to try. Documentation is still pending but
follows a quick walkthrough:
Syntax:
forall( BasePattern([constraints]*)[,] [AdditionalPattern([constraints])
[,]]* )
Example:
forall( Person( $likes: likes ),
Cheese( type == $likes ) )
The above statement can be translated to: "for all Person facts, there
must be a Cheese fact whose type is the one the person likes".
In other words, a forall is translated to:
not( BasePattern(...) and not( AdditionalPattern(...) and
AdditionalPattern(...) ... ) )
So you can make sure that all charges to a credit card have
corresponding charge type and issueing store:
forall( Charge( $type: type, $issuer: issuer ),
ChargeType( type == $type ),
Store( name == $issuer ) )
This is equivalent to (but much cleaner to write):
not( Charge( $type: type, $issuer: issuer ) and
not( ChargeType( type == $type ) and
Store( name == $issuer ) ) )
Let me know if you have any question or find any problem.
Thanks,
[]s
Edson
--
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
Office: +55 11 3124-6000
Mobile: +55 11 9218-4151
JBoss, a division of Red Hat @ www.jboss.com
17 years, 11 months
RE: [rules-users] Out of Memory Issue of JBoss Enginedeployed onIBMWAS 6.0.2.7
by Dejia Wang
Thanks Mark. However, with the OOM issue in JBoss Rules 3.0.5, we cannot
really use it in enterprise environment. It would be good if we can get
3.0.6 out sooner.
BTW, have your guys check in the fix? Is there anything we can help to
get 3.0.6 out sooner?
Thanks- Dejia
_____
From: Mark Proctor [mailto:mproctor@codehaus.org]
Sent: Monday, January 15, 2007 6:33 PM
To: Rules Users List
Subject: Re: [rules-users] Out of Memory Issue of JBoss Enginedeployed
onIBMWAS 6.0.2.7
Antlr 2.7.7 is just for the StringTemplate stuff, we are actually using
Antlr 3. You could attempt to regenerate the grammar again with latest
versions of antlrworks and antlr, although I'm not sure if it works
without updates to the drl. Not sure when 3.0.6 will be out, probably
not for a few weeks.
Mark
Dejia Wang wrote:
BTW, I noticed that current stable version of antlr is 2.7.7 (released
November 1, 2006). Rule 3.0.5 has 2.7.6.
Edson, will antlr 2.7.7 work?
Thanks- Dejia
_____
From: Dejia Wang
Sent: Monday, January 15, 2007 5:40 PM
To: 'Rules Users List'
Subject: RE: [rules-users] Out of Memory Issue of JBoss Engine deployed
onIBMWAS 6.0.2.7
This is good news. Thanks very much, Mark and Edson! BTW, when will
3.0.6 release be out?
- Dejia
_____
From: Mark Proctor [mailto:mproctor@codehaus.org]
Sent: Monday, January 15, 2007 4:33 PM
To: Rules Users List
Subject: Re: [rules-users] Out of Memory Issue of JBoss Engine deployed
onIBMWAS 6.0.2.7
I believe this was a bug in antlr that is now fixed. I'll see if we can
get a 3.0.6 release done some time updated to the latest antlr. Edson
knows more about this, as it was a bug he investigated.
Mark
Dejia Wang wrote:
BTW, I am using the JBoss Rules 3.0.5.
_____
From: Dejia Wang
Sent: Monday, January 15, 2007 3:56 PM
To: rules-users(a)lists.jboss.org
Subject: [rules-users] Out of Memory Issue of JBoss Engine deployed on
IBMWAS 6.0.2.7
Importance: High
Hi All,
I ran into OOM (Out of Memory) issue of JBoss Rule Engine deployed on
IBM WAS 6.0.2.7. Below is the log
...
[Loaded org.antlr.runtime.DFA from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxx.ear/lib/antlr-3.0ea8.jar
<file:///D:%5CWebSphere%5CAppServer%5Cprofiles%5CAppSrv01%5CinstalledApp
s%5CxxxNode02Cell%5Cxxx.ear%5Clib%5Cantlr-3.0ea8.jar> ]
[Loading superclass and interfaces of org/antlr/runtime/DFA]
[Preparing org/antlr/runtime/DFA]
[Loaded org.antlr.runtime.DFA$State from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxxApplications.ear/lib/antlr-3.0ea8.jar
<file:///D:%5CWebSphere%5CAppServer%5Cprofiles%5CAppSrv01%5CinstalledApp
s%5CxxxNode02Cell%5CxxxApplications.ear%5Clib%5Cantlr-3.0ea8.jar> ]
[Loading superclass and interfaces of org/antlr/runtime/DFA$State]
[Loaded org.drools.lang.RuleParserLexer$1 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxxApplications.ear/lib/drools-compiler-3.0.jar
<file:///D:%5CWebSphere%5CAppServer%5Cprofiles%5CAppSrv01%5CinstalledApp
s%5CxxxNode02Cell%5CxxxApplications.ear%5Clib%5Cdrools-compiler-3.0.jar>
]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$1]
[Loaded org.drools.lang.RuleParserLexer$2 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/
<file:///D:%5CWebSphere%5CAppServer%5Cprofiles%5CAppSrv01%5CinstalledApp
s%5CxxxNode02Cell%5C> xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$2]
[Loaded org.drools.lang.RuleParserLexer$3 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/
<file:///D:%5CWebSphere%5CAppServer%5Cprofiles%5CAppSrv01%5CinstalledApp
s%5CxxxNode02Cell%5C> xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$3]
[Loaded org.drools.lang.RuleParserLexer$4 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/
<file:///D:%5CWebSphere%5CAppServer%5Cprofiles%5CAppSrv01%5CinstalledApp
s%5CxxxNode02Cell%5C> xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$4]
....
[Loaded org.drools.lang.RuleParserLexer$228 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxxApplications.ear/lib/drools-compiler-3.0.jar
<file:///D:%5CWebSphere%5CAppServer%5Cprofiles%5CAppSrv01%5CinstalledApp
s%5CxxxNode02Cell%5CxxxApplications.ear%5Clib%5Cdrools-compiler-3.0.jar>
]
[Loading superclass and interfaces of
org/drools/lang/RuleParserLexer$228]
...
It looks like it loaded the same class hundreds of times until it
exhausts the memory.
Any idea why this happens and how to fix this?
Thanks- Dejia
_____
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_____
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
17 years, 11 months
Re: [rules-users] Out of Memory Issue of JBoss Enginedeployed onIBMWAS 6.0.2.7
by Joel G. Rivera-González
quick question about this...
how many rules do you run on your app?
Joel G. Rivera-Gonzalez
PRT
----- Original Message ----
From: Dejia Wang <Dejia.Wang(a)tdemand.com>
To: Rules Users List <rules-users(a)lists.jboss.org>
Sent: Tuesday, January 16, 2007 2:28:14 PM
Subject: RE: [rules-users] Out of Memory Issue of JBoss Enginedeployed onIBMWAS 6.0.2.7
<!--
_filtered {font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
color:black;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
pre
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.EmailStyle18
{
font-family:Arial;
color:windowtext;}
span.EmailStyle19
{
font-family:Arial;
color:navy;}
span.EmailStyle20
{
font-family:Arial;
color:navy;}
span.EmailStyle21
{
font-family:Arial;
color:navy;}
span.EmailStyle22
{
font-family:Arial;
color:navy;}
_filtered {
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{}
-->
Thanks Mark. However, with the OOM issue
in JBoss Rules 3.0.5, we cannot really use it in enterprise environment. It
would be good if we can get 3.0.6 out sooner.
BTW, have your guys check in the fix? Is
there anything we can help to get 3.0.6 out sooner?
Thanks- Dejia
From: Mark Proctor [mailto:mproctor@codehaus.org]
Sent: Monday, January 15, 2007
6:33 PM
To: Rules Users List
Subject: Re: [rules-users] Out of
Memory Issue of JBoss Enginedeployed onIBMWAS 6.0.2.7
Antlr 2.7.7 is just for the StringTemplate
stuff, we are actually using Antlr 3. You could attempt to regenerate the
grammar again with latest versions of antlrworks and antlr, although I'm not
sure if it works without updates to the drl. Not sure when 3.0.6 will be out,
probably not for a few weeks.
Mark
Dejia Wang wrote:
BTW, I noticed that current stable version of antlr is 2.7.7
(released November 1, 2006). Rule 3.0.5 has 2.7.6.
Edson, will antlr 2.7.7 work?
Thanks- Dejia
From: Dejia Wang
Sent: Monday, January 15, 2007
5:40 PM
To: 'Rules
Users List'
Subject: RE: [rules-users] Out of
Memory Issue of JBoss Engine deployed onIBMWAS 6.0.2.7
This is good news. Thanks very much, Mark
and Edson! BTW, when will 3.0.6 release be out?
- Dejia
From: Mark Proctor [mailto:mproctor@codehaus.org]
Sent: Monday, January 15, 2007
4:33 PM
To: Rules Users List
Subject: Re: [rules-users] Out of
Memory Issue of JBoss Engine deployed onIBMWAS 6.0.2.7
I believe this was a bug in antlr that is now
fixed. I'll see if we can get a 3.0.6 release done some time updated to the
latest antlr. Edson knows more about this, as it was a bug he investigated.
Mark
Dejia Wang wrote:
BTW, I am using the JBoss Rules 3.0.5.
From: Dejia
Wang
Sent: Monday, January 15, 2007
3:56 PM
To: rules-users(a)lists.jboss.org
Subject: [rules-users] Out of
Memory Issue of JBoss Engine deployed on IBMWAS 6.0.2.7
Importance: High
Hi All,
I ran into OOM (Out of Memory) issue of JBoss Rule Engine deployed on IBM WAS 6.0.2.7. Below is the log
…
[Loaded org.antlr.runtime.DFA from file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Cell/xxx.ear/lib/antlr-3.0ea8.jar]
[Loading superclass and interfaces of
org/antlr/runtime/DFA]
[Preparing org/antlr/runtime/DFA]
[Loaded org.antlr.runtime.DFA$State from file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Cell/xxxApplications.ear/lib/antlr-3.0ea8.jar]
[Loading superclass and interfaces of
org/antlr/runtime/DFA$State]
[Loaded org.drools.lang.RuleParserLexer$1 from file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Cell/xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of
org/drools/lang/RuleParserLexer$1]
[Loaded org.drools.lang.RuleParserLexer$2 from file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Cell/
xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of
org/drools/lang/RuleParserLexer$2]
[Loaded org.drools.lang.RuleParserLexer$3 from file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Cell/
xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of
org/drools/lang/RuleParserLexer$3]
[Loaded org.drools.lang.RuleParserLexer$4 from file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Cell/
xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of
org/drools/lang/RuleParserLexer$4]
….
[Loaded org.drools.lang.RuleParserLexer$228 from file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Cell/xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of
org/drools/lang/RuleParserLexer$228]
…
It looks like it loaded the same class hundreds of
times until it exhausts the memory.
Any idea why this happens and how to fix this?
Thanks- Dejia
_______________________________________________rules-users mailing listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________rules-users mailing listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
17 years, 11 months
How to get a rule fired when the object is not changed?
by Faizan
As i understand the rules get fired on a fact/object when it is modified and
the workingMemory is notified of the change. I have a requirement where one
attribute of a fact is time based (due date of an Order object) which is a
static field but i need to run a thread that periodically compares the
current date with this attribute so that i can fire a rule when the system
date matches with the due date. Now since the object is not modified simply
calling fireAllRules() by this thread is not working for me.
A workaround that i have is to retract and assert (or modify) that object
everytime that thread calls fireAllRules() but in that case i need to call
modify on all Order objects lying in the working memory. Is there any better
way to achieve this?
thanks,
Faizan
--
View this message in context: http://www.nabble.com/How-to-get-a-rule-fired-when-the-object-is-not-chan...
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 11 months
Can't use dollar ($) char in Rule Name with Janino compiler
by Bree
Hi,
I searched the Jboss-rules Jira and didn't find this issue documented yet,
though I may have missed it.
Essentially it appears that any rule using the U.S. Dollar character ($) in the
rule name fails when compiled with Janino. I was able to reproduce the issue
using the "default" new JBoss-rules project wizard in Eclipse.
The stack trace follows, though it may not be much help. I tried tracking it
down and it looks like the problem is actually caused in the parse/compilation
step (i.e. builder.addPackageFromDrl( source );). After this step the rule in
question has a null "consequence", which causes the
"AbstractRuleBase.addRule(...)" method to fail when it does the isValid() check.
<code>
java.lang.IllegalArgumentException: The rule called Show me da $ is not valid.
Check for compile errors reported.
at org.drools.common.AbstractRuleBase.addRule(Unknown Source)
at org.drools.reteoo.ReteooRuleBase.addRule(Unknown Source)
at org.drools.common.AbstractRuleBase.addPackage(Unknown Source)
at com.sample.DroolsTest.readRule(DroolsTest.java:89)
at com.sample.DroolsTest.main(DroolsTest.java:29)
</code>
Please let me know if you require additional information and/or if you'd like me
to log this in the Jira.
Thanks,
Bree
17 years, 11 months
deploying portal-ajax.war
by Lipika Sahoo
Hi all,
I am using Jboss Portal 2.6 and after starting off with the
HelloWorldPortlet, I tried deploying portal-ajax.war onto the Portal
server.
The deployment shows no errors but upon hitting
http://localhost:8080/portal i dont see any new portlet listed.
How is this portal-ajax.war supposed to work?
Any pointers or guides on this please???
Lipika Sahoo
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
17 years, 11 months
RE: [rules-users] Out of Memory Issue of JBoss Engine deployed onIBMWAS 6.0.2.7
by Dejia Wang
BTW, I noticed that current stable version of antlr is 2.7.7 (released
November 1, 2006). Rule 3.0.5 has 2.7.6.
Edson, will antlr 2.7.7 work?
Thanks- Dejia
_____
From: Dejia Wang
Sent: Monday, January 15, 2007 5:40 PM
To: 'Rules Users List'
Subject: RE: [rules-users] Out of Memory Issue of JBoss Engine deployed
onIBMWAS 6.0.2.7
This is good news. Thanks very much, Mark and Edson! BTW, when will
3.0.6 release be out?
- Dejia
_____
From: Mark Proctor [mailto:mproctor@codehaus.org]
Sent: Monday, January 15, 2007 4:33 PM
To: Rules Users List
Subject: Re: [rules-users] Out of Memory Issue of JBoss Engine deployed
onIBMWAS 6.0.2.7
I believe this was a bug in antlr that is now fixed. I'll see if we can
get a 3.0.6 release done some time updated to the latest antlr. Edson
knows more about this, as it was a bug he investigated.
Mark
Dejia Wang wrote:
BTW, I am using the JBoss Rules 3.0.5.
_____
From: Dejia Wang
Sent: Monday, January 15, 2007 3:56 PM
To: rules-users(a)lists.jboss.org
Subject: [rules-users] Out of Memory Issue of JBoss Engine deployed on
IBMWAS 6.0.2.7
Importance: High
Hi All,
I ran into OOM (Out of Memory) issue of JBoss Rule Engine deployed on
IBM WAS 6.0.2.7. Below is the log
...
[Loaded org.antlr.runtime.DFA from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxx.ear/lib/antlr-3.0ea8.jar
<file:///D:\WebSphere\AppServer\profiles\AppSrv01\installedApps\xxxNode0
2Cell\xxx.ear\lib\antlr-3.0ea8.jar> ]
[Loading superclass and interfaces of org/antlr/runtime/DFA]
[Preparing org/antlr/runtime/DFA]
[Loaded org.antlr.runtime.DFA$State from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxxApplications.ear/lib/antlr-3.0ea8.jar
<file:///D:\WebSphere\AppServer\profiles\AppSrv01\installedApps\xxxNode0
2Cell\xxxApplications.ear\lib\antlr-3.0ea8.jar> ]
[Loading superclass and interfaces of org/antlr/runtime/DFA$State]
[Loaded org.drools.lang.RuleParserLexer$1 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxxApplications.ear/lib/drools-compiler-3.0.jar
<file:///D:\WebSphere\AppServer\profiles\AppSrv01\installedApps\xxxNode0
2Cell\xxxApplications.ear\lib\drools-compiler-3.0.jar> ]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$1]
[Loaded org.drools.lang.RuleParserLexer$2 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/
<file:///D:\WebSphere\AppServer\profiles\AppSrv01\installedApps\xxxNode0
2Cell\> xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$2]
[Loaded org.drools.lang.RuleParserLexer$3 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/
<file:///D:\WebSphere\AppServer\profiles\AppSrv01\installedApps\xxxNode0
2Cell\> xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$3]
[Loaded org.drools.lang.RuleParserLexer$4 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/
<file:///D:\WebSphere\AppServer\profiles\AppSrv01\installedApps\xxxNode0
2Cell\> xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$4]
....
[Loaded org.drools.lang.RuleParserLexer$228 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxxApplications.ear/lib/drools-compiler-3.0.jar
<file:///D:\WebSphere\AppServer\profiles\AppSrv01\installedApps\xxxNode0
2Cell\xxxApplications.ear\lib\drools-compiler-3.0.jar> ]
[Loading superclass and interfaces of
org/drools/lang/RuleParserLexer$228]
...
It looks like it loaded the same class hundreds of times until it
exhausts the memory.
Any idea why this happens and how to fix this?
Thanks- Dejia
_____
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
17 years, 11 months
RE: [rules-users] Out of Memory Issue of JBoss Engine deployed onIBMWAS 6.0.2.7
by Dejia Wang
This is good news. Thanks very much, Mark and Edson! BTW, when will
3.0.6 release be out?
- Dejia
_____
From: Mark Proctor [mailto:mproctor@codehaus.org]
Sent: Monday, January 15, 2007 4:33 PM
To: Rules Users List
Subject: Re: [rules-users] Out of Memory Issue of JBoss Engine deployed
onIBMWAS 6.0.2.7
I believe this was a bug in antlr that is now fixed. I'll see if we can
get a 3.0.6 release done some time updated to the latest antlr. Edson
knows more about this, as it was a bug he investigated.
Mark
Dejia Wang wrote:
BTW, I am using the JBoss Rules 3.0.5.
_____
From: Dejia Wang
Sent: Monday, January 15, 2007 3:56 PM
To: rules-users(a)lists.jboss.org
Subject: [rules-users] Out of Memory Issue of JBoss Engine deployed on
IBMWAS 6.0.2.7
Importance: High
Hi All,
I ran into OOM (Out of Memory) issue of JBoss Rule Engine deployed on
IBM WAS 6.0.2.7. Below is the log
...
[Loaded org.antlr.runtime.DFA from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxx.ear/lib/antlr-3.0ea8.jar
<file:///D:\WebSphere\AppServer\profiles\AppSrv01\installedApps\xxxNode0
2Cell\xxx.ear\lib\antlr-3.0ea8.jar> ]
[Loading superclass and interfaces of org/antlr/runtime/DFA]
[Preparing org/antlr/runtime/DFA]
[Loaded org.antlr.runtime.DFA$State from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxxApplications.ear/lib/antlr-3.0ea8.jar
<file:///D:\WebSphere\AppServer\profiles\AppSrv01\installedApps\xxxNode0
2Cell\xxxApplications.ear\lib\antlr-3.0ea8.jar> ]
[Loading superclass and interfaces of org/antlr/runtime/DFA$State]
[Loaded org.drools.lang.RuleParserLexer$1 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxxApplications.ear/lib/drools-compiler-3.0.jar
<file:///D:\WebSphere\AppServer\profiles\AppSrv01\installedApps\xxxNode0
2Cell\xxxApplications.ear\lib\drools-compiler-3.0.jar> ]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$1]
[Loaded org.drools.lang.RuleParserLexer$2 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/
<file:///D:\WebSphere\AppServer\profiles\AppSrv01\installedApps\xxxNode0
2Cell\> xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$2]
[Loaded org.drools.lang.RuleParserLexer$3 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/
<file:///D:\WebSphere\AppServer\profiles\AppSrv01\installedApps\xxxNode0
2Cell\> xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$3]
[Loaded org.drools.lang.RuleParserLexer$4 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/
<file:///D:\WebSphere\AppServer\profiles\AppSrv01\installedApps\xxxNode0
2Cell\> xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$4]
....
[Loaded org.drools.lang.RuleParserLexer$228 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxxApplications.ear/lib/drools-compiler-3.0.jar
<file:///D:\WebSphere\AppServer\profiles\AppSrv01\installedApps\xxxNode0
2Cell\xxxApplications.ear\lib\drools-compiler-3.0.jar> ]
[Loading superclass and interfaces of
org/drools/lang/RuleParserLexer$228]
...
It looks like it loaded the same class hundreds of times until it
exhausts the memory.
Any idea why this happens and how to fix this?
Thanks- Dejia
_____
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
17 years, 11 months
Out of Memory Issue of JBoss Engine deployed on IBM WAS 6.0.2.7
by Dejia Wang
Hi All,
I ran into OOM (Out of Memory) issue of JBoss Engine deployed on IBM WAS
6.0.2.7. Below is the log
...
[Loaded org.antlr.runtime.DFA from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxx.ear/lib/antlr-3.0ea8.jar]
[Loading superclass and interfaces of org/antlr/runtime/DFA]
[Preparing org/antlr/runtime/DFA]
[Loaded org.antlr.runtime.DFA$State from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxxApplications.ear/lib/antlr-3.0ea8.jar]
[Loading superclass and interfaces of org/antlr/runtime/DFA$State]
[Loaded org.drools.lang.RuleParserLexer$1 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$1]
[Loaded org.drools.lang.RuleParserLexer$2 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/ xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$2]
[Loaded org.drools.lang.RuleParserLexer$3 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/ xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$3]
[Loaded org.drools.lang.RuleParserLexer$4 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/ xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of org/drools/lang/RuleParserLexer$4]
....
[Loaded org.drools.lang.RuleParserLexer$228 from
file:/D:/WebSphere/AppServer/profiles/AppSrv01/installedApps/xxxNode02Ce
ll/xxxApplications.ear/lib/drools-compiler-3.0.jar]
[Loading superclass and interfaces of
org/drools/lang/RuleParserLexer$228]
...
It looks like it loaded the same class hundreds of times until it
exhausts the memory.
Any idea why this happens and how to fix this?
Thanks- Dejia
17 years, 11 months