Hi,
This is my first post. We have a facility in our Java web
application to upload SQL queries to the Oracle DB. These queries are not
controlled or audited. There are queries the are several pages long. Some
of these queries are configured to fire one after the other to
I have more context. The type of queries that are stored in the DB are
huge. Load is not distributed properly. Rules are not maintainable. So this
particular web application does not bring any data
to the app. tier. I am researching a proper rules engine for this case.
Thanks.
Hi laune,
I was able to track the issue. I have found that rule fires two times
because I’m retracting InsufBalFailFact object which is having max (rental)
inside RHS. But i have placed no-loop true in rule but result was same.
In my case I have generated a ReloadEvent and trigger fireAllRules
re = new ReloadEvent();
re.rechargedNumber = 777123456;
re.reloadValue =80;
balFact1 = new InsufBalFailFact();
balFact1.mobileNo = 777123456;
balFact1.rental=40;
balFact1.pkgId=IBB40;
balFact2 = new InsufBalFailFact();
balFact2.mobileNo = 777123456;
balFact2.rental=100;
balFact2.pkgId=IBB100;
i have placed below. but still i'm getting same results.
not InsufBalFailFact(mobileNo == $rechargeNum, rental $rental rental
$reloadVal)
--
View this message in context:
http://drools.46999.n3.nabble.com/filtering-object-having-max-value-tp4024055p4024071.html
Sent from the Drools: User
Hi folks,
I want to filter object instance in WM when max value of an object field
(rental ) is less than X (reloadValue) . X will vary over time.
I tried to use below query but I couldn't get expected results. Could anyone
please help me?
Thanks.
Hi Gurus,
any ideas views on above??
--
View this message in context:
http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effectively-tp4020194p4020793.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
Even though i have upgraded my application (jboss-6.1.0.Final, Jboss ESB
4.11,drools-5.3.1.Final,mvel2-2.1.0.drools4) still I’m facing memory leak.
Application reached 15 GB heap while it ran 4 hours. While going through
series of forum post now I suspect that single StatefulSession cause the
.
Thanks a lot.
Mohan
--
View this message in context:
http://drools.46999.n3.nabble.com/Error-while-upgrdaing-drools-version-tp4020702p4020743.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules
(ManagedLifecycleController.java:109)
[:
]
kind regards
Mohan
--
View this message in context:
http://drools.46999.n3.nabble.com/Error-while-upgrdaing-drools-version-tp4020702.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users
static
StatefulKnowledgeSession?
With kind regards,
Mohan
--
View this message in context:
http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effectively-tp4020194p4020646.html
Sent from the Drools: User forum mailing list archive at Nabble.com
Let's assume we need to calculate number of Alarm facts/events inserted into
WM over particular day. We will keep on adding facts throughout the day. If
this count greater than threshold let’s notify somebody. Also we will
retract facts/events which are older than 24 hours.
Can we handle this
Hi Greg,
yes that's the way i'm doing right now. To keep this count hope we need to
maintain single session. So we can’t dispose session and by the time will we
end up with memory exhaust?
Thanks a lot.
--
View this message in context:
interval are not fixed. it should be sysdate+24 hours. (2 AM to next day 2
AM)
--
View this message in context:
http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effectively-tp4020194p4020663.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
What I meant is 24 hour period start from when event insert into memory. So
each event/fact has different 24 hour period. If you take whole picture it
is not fixed.
Simply can we count number of facts/events in a WM in a particular time
using multiple session? So I can call session.dispose()
improvement in overall memory consumption.
Tks
Mohan
--
View this message in context:
http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effectively-tp4020194p4020669.html
Sent from the Drools: User forum mailing list archive at Nabble.com
What about send a message to MDB inside rule RHS? So MDB will look after
entire db operation. Will this decouple rule from db layer?
--
View this message in context:
http://drools.46999.n3.nabble.com/what-is-best-way-to-deal-with-db-access-in-rules-tp4020309p4020315.html
Sent from the Drools:
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
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
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
“Statefulknowledge” session and use single session to
cater each event never call session.dispose(). Will there be any impact?
I’m using Drool 5.1.1, jboss-5.1.0.GA, jre 1.6.0_33
Thanks.
Mohan
--
View this message in context:
http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory
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
Try changing DSL
from
[consequence][]write {value} to stdout=System.out.println({value});
To
[consequence][]write {value} to stdout=System.out.println( {value} );
And see if it works.
--Mohan
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Markus
Object is siimple java bean, property primary is String. )) is a typo I
made in this thread corrected below is how i have it when I run it.
rule test
dialect mvel
when
Experience( primary == SY)
then
log.debug(SY);
end
vdelbart
Right... it is a simple constraint should work. To verify problem is not with
Classloaders and String intern, I tried the second rule using eval and that
worked, so problem is not interning
vdelbart wrote:
I try with this and it's working. I don't know why your case doesn't work.
public
Hi There,
I am facing a weird issue, following rule doesn't run
rule test
dialect mvel
when
Experience( primary == SY) )
then
log.debug(SY);
end
but following works. :confused:
rule test1
dialect mvel
when
26 matches
Mail list logo