Drools Performance /Memory Leak Issue
by arrehman
Hi,
I am not much of an expert on Drools. I got a DRL file (very small rule set
of less than 10 rules, that checks few conditions, also includes DB calls).
I use Drools 5.2 inside a grails application. I am using stateful session. I
call this rules 100,000 times for each for each of the 100,000 records that
I want to validate. However the performance gradually deteriorates. What
could be going on here? General advice on how to approach solving this,
improving performance. Should I be using stateless drools session? How do I
configure the Drools MBeans so I can monitor Drools better?
PS: I can provide more details as you needed. I can paste the general gist
of the code and DRL file. Any help is greatly appreciated. I spent two days
on this with no results.
Thanks,
Abdul
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Performance-Memory-Leak-Issue-tp...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 5 months
Drools 5.3.0 Dependencies
by arrehman
Hi,
I was using drools 5.2.0 in my grails 2.0.0.M2 application. I use Drools
expert to execute a .drl file I have. The three dependencies that I have set
up for this to work was:
runtime 'org.drools:drools-core:5.2.0.Final'
runtime 'org.drools:drools-compiler:5.2.0.Final'
runtime 'com.sun.xml.bind:jaxb-xjc:2.2.4'
However when I switched to drools 5.3.0. The rules are not getting executed
or there are some problems. There is no stacktrace or log. I have no idea
what is going on. My guess is that some of the dependency jars or classes
are missing. Any insight into this?
Thanks,
Abdul
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-5-3-0-Dependencies-tp3452346p345...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 5 months
Drools command line tools?
by arrehman
Hi,
I am using Drools 5.2 (direclty, not via grails plugins) in a grails
2.0.0.M2 web application. I use IntelliJ IDEA for development which does not
support Drools inherently. (I know eclipse has better support) I am
struggling with the compilations, syntax erros of .DRL file I have in my
app. Are there any command line tools that will help me point out the exact
syntax errors of the DRL file? Currently I am struggling, and doing a adhoc
approach. I know there must be a better way.
Thanks,
Abdul
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-command-line-tools-tp3465973p346...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 5 months
5.3.0 Faster Complation?
by Saleem Lakhani
Hi,
>From documentation of 5.3.0:
2.1.1.4. Faster compilation
Thanks to many improvements and optimizations made on both MVEL library
and Drools internals, the DRL compilation is now at least 3 times faster
for both MVEL and Java dialects.
Does it really affect the runtime execution of already compiled &&
serialized rules in production? Any technical details will help.
Thanks,
saleem
14 years, 5 months
confusing behaviour of enum comparison
by lhorton
5.2.0.Final
I am seeing some confusing behaviour in enum comparisons in LHS rule
conditions. I have an enum class, "Status" (full source below) that is an
attribute on several of our domain objects. I'm comparing the enum in
several ways, and the rule fires differently when I use syntax that AFAIK
ought to have the same result.
for example, say there is a Step with status of Status.PENDING. if I write:
$step : Step(status.active == false) // rule DOES fire
$step : Step(status != Status.ACTIVE) // rule does NOT fire, but should
I am testing this with the same objects and same test each time. can anyone
explain why the two comparisons do not get the same result?
here is the definition of Status:
public enum Status {
PENDING("Pending"),
ACTIVE("Active"),
COMPLETE("Complete");
private final String label;
private Status(String label) {
this.label = label;
}
public String getLabel() {
return label;
}
public boolean isPending(){
return label.equals("Pending");
}
public boolean isActive(){
return label.equals("Active");
}
public boolean isComplete(){
return label.equals("Complete");
}
public static boolean isPending(Status status) {
return (status == null) ? false : status.isPending();
}
public static boolean isActive(Status status) {
return (status == null) ? false : status.isActive();
}
public static boolean isComplete(Status status) {
return (status == null) ? false : status.isComplete();
}
public static Status fromString(String name) {
if (name != null) {
Status types[] = Status.values();
for(Status s : types) {
if (name.equalsIgnoreCase(s.toString())) {
return s;
}
}
}
return null;
}
}
--
View this message in context: http://drools.46999.n3.nabble.com/confusing-behaviour-of-enum-comparison-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 5 months
Regression 5.1->5.2 with conflicting ClassNames
by Swindells, Thomas
I'm in the progress of updating from Drools 5.1 to 5.2 in the hope of solving problems we are having with intermittent mysteriously missing activations.
I've found a regression with the compiler which I don't know whether anybody else has noticed before.
In our application we've got two Content classes in different packages, and unfortunately one of our rule files has to reason over both of them.
In drools 5.1 this was fine, we imported one of them and then used the fully qualified name for the other.
I'm just upgrading to 5.2.0-Final and this no longer works. When resolving the unqualified class name drools/mvel(?) was choosing the package that we hadn't imported!
This obviously then gave us loads of misleading error messages about not being able to find fields.
Fully quallifiying all references to both classes fixed the issue but something obviously isn't behaving properly.
Thomas
________________________________
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster(a)nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
14 years, 5 months
Fwd: "Accumulate and Collect" issue - Guvnor 5.2 Final
by Michael Anstis
---------- Forwarded message ----------
From: <praveen.sanju(a)gmail.com>
Date: 28 October 2011 10:48
Subject: "Accumulate and Collect" issue - Guvnor 5.2 Final
Hi,
We gave a try with 5.2 Final version, and see that all "collect" clauses
appears in grey and are not editable (such conditions are also not
deletable). Everything was OK with the M2 version (rules were edited with
this version).
It is quite strange because all the "collect" condition is greyed, just like
a disabled field, and seems to be done by purpose. Is "collect" deprecated ?
http://drools.46999.n3.nabble.com/rules-users-Guvnor-5-2-CR1-problem-with...
Above Forum link says to import what is required into the package
definition.
Could you please provide a detailed step-by-step procedure to get this
accomplished. Our intention is to get all the Collection types in the Guvnor
UI.
Thanks & Regards,
Praveen.
14 years, 5 months
Java Drools developer
by Danielle Slinn
Hi Everyone
Firstly, apologies for the impersonal nature of this email - I am working with a client to short timescales and need to cast a quick net...
Your details have been highlighted from my database in reference to a Java Developer assignment based in Cork Ireland, which I am presently resourcing.
I'd like to find out if you are interested or whether you know of someone else more appropriate whom we could help...
The high level requirements are as follow:
* 6-month initial contract
* Java/JEE
* JBOSS Rules -DROOLS
* PL/SQL
* Struts
* Hibernate
* Spring
If this is the type of opportunity you are interested in hearing about from Modis International, I would be most grateful if you could forward me your most up to date CV, indicating your availability; I will call you to discuss the assignment and to provide you with more specific details.
If however, this isn't relevant to your current skills or requirements - it is likely that we hold an out of date CV. In this instance, apologies again, but please still forward me your most up to date CV alongside a brief outline of what you are looking for in order to ensure that we do only contact you with relevant opportunities in the future...
Thanks in advance!
Please send your Uptodate CV to:
Danielle.slinn(a)modisintl.com<mailto:Danielle.slinn@modisintl.com>
14 years, 5 months
inserting multiple facts in RHS
by RK
I want to insert multiple facts sourced by a 'from' clause to a service
method.
For Ex:
when
...
then
insert( mycustomobject() from globalService.getCustomObjects())
getCustomObjects() method will return several instances of custom objects
based on a sql query and i want to insert them into the knowledge session.
I'll be using these custom objects in other subsequent rules.
Is it possible to do something like this ?
Thanks
--
View this message in context: http://drools.46999.n3.nabble.com/inserting-multiple-facts-in-RHS-tp34590...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 5 months