Re: [rules-users] Upgrade to Drools 5 - loss of performance

2010-01-11 Thread HonorGod

Hi Mark ,

If i were to use decision tables outside eclipse what are the list of
dependency jar i need to have in classpath?

..\lib\drools-ant-5.0.1.jar ;
..\lib\drools-api-5.0.1.jar ;
..\lib\drools-bam-5.0.1.jar ;.
.\lib\drools-clips-5.0.1.jar ;
..\lib\drools-compiler-5.0.1.jar ;
..\lib\drools-core-5.0.1.jar ;
..\lib\drools-decisiontables-5.0.1.jar ;
..\lib\drools-jsr94-5.0.1.jar ;
..\lib\drools-mc-5.0.1.jar ;
..\lib\drools-messenger-jms-5.0.1.jar ;
..\lib\drools-persistence-jpa-5.0.1.jar ;
..\lib\drools-process-task-5.0.1.jar ;
..\lib\drools-templates-5.0.1.jar ;
..\lib\drools-transformer-jaxb-5.0.1.jar ;
..\lib\drools-transformer-jxls-5.0.1.jar ;
..\lib\drools-transformer-smooks-5.0.1.jar ;
..\lib\drools-transformer-xstream-5.0.1.jar ;
..\lib\drools-verifier-5.0.1.jar ;
..\lib\drools-workitems-5.0.1.jar;
..\lib\jxl-2.4.2.jar;
..\lib\jxls-reader-0.9.6.jar;
..\lib\mvel2-2.0.10.jar;
..\lib\joda-time-1.6.jar;
..\lib\antlr-runtime-3.1.1.jar;
..\lib\jsr94-1.1.jar;
..\lib\janino-2.5.15.jar;
..\lib\janino.jar;

DId i miss anything or add too many than required? because i am getting
org.drools.RuntimeDroolsException: Unable to load dialect
'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:org.drools.rule.builder.dialect.java.JavaDialectConfiguration'

Scott Reed-3 wrote:
 
 2009/5/29 Mark Proctor mproc...@codehaus.org
 
  Scott Reed wrote:

 Edson,
   I wasn't clear. I am getting this dialect error when I run the app
 outside Eclipse. It works great in Eclipse.

 If you are outside of eclipse, then you need a compiler - either Janino
 or
 JDT, it's always been that way.

 Mark

 
 Ah! I'm glad it's so simple! I interpreted the dependencies file to say
 that
 both compilers are optional. I figured Drools-Compiler would do the
 compiling unless I wanted whatever special compiling features were offered
 by Eclipse or Janino.
 Thanks again,
   Scott
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 

-- 
View this message in context: 
http://n3.nabble.com/Upgrade-to-Drools-5-loss-of-performance-tp60328p117578.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Upgrade to Drools 5 - loss of performance

2009-05-29 Thread Scott Reed
Another change that occurred in parallel with the upgrade was responsible
for the upgrade. MY apologies for the false alarm.

I am now seeing a problem with Unable to load dialect  ...
JavaDialectConfiguration - it appears to be looking for the Eclipse JDT jar
file. However, I have never required that before. I use the Eclipse plugin
but have not needed the JDT jar in the deployed app - doing fine with
drools-compiler. I can start a new thread for this issue if it's going to
take more than one reply to address this.
Here's the drools dependencies in my classpath:
antlr-runtime-3.1.1.jar
drools-api-5.0.1.jar
drools-compiler-5.0.1.jar
drools-core-5.0.1.jar
joda-time-1.6.jar
mvel2-2.0.10.jar

Here's the error output:
Exception in thread AWT-EventQueue-0 org.drools.RuntimeDroolsException:
Unable to load dialect
'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:org.drools.rule.builder.dialect.java.JavaDialectConfiguration'
at
org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:274)
at
org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:259)
at
org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:176)
at
org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:153)
at org.drools.compiler.PackageBuilder.init(PackageBuilder.java:242)
at org.drools.compiler.PackageBuilder.init(PackageBuilder.java:142)
at com.cbfp.findata.Rules.generateRuleBase(Rules.java:165)
at com.cbfp.findata.Rules.addPackage(Rules.java:208)
at com.cbfp.findata.Rules.createRules(Rules.java:64)
...
Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not in
the classpath
at
org.drools.rule.builder.dialect.java.JavaDialectConfiguration.setCompiler(JavaDialectConfiguration.java:94)
at
org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:55)
at
org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:270)
...
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Upgrade to Drools 5 - loss of performance

2009-05-29 Thread Edson Tirelli
   Hi Scott,

   All I can say is I am glad to hear. :)

   Regarding your eclipse problem, please check 2 things: Drools plugin now
supports multiple runtimes the same way that eclipse supports multiple JDKs.
So, go to windows-preferences-drools-installed runtime to configure that.
Also, make sure you are using eclipse 3.4. I believe this is in the drools
plugin docs, but I did not checked myself.

   []s
   Edson

2009/5/29 Scott Reed sr...@avacoda.com

 Another change that occurred in parallel with the upgrade was responsible
 for the upgrade. MY apologies for the false alarm.

 I am now seeing a problem with Unable to load dialect  ...
 JavaDialectConfiguration - it appears to be looking for the Eclipse JDT jar
 file. However, I have never required that before. I use the Eclipse plugin
 but have not needed the JDT jar in the deployed app - doing fine with
 drools-compiler. I can start a new thread for this issue if it's going to
 take more than one reply to address this.
 Here's the drools dependencies in my classpath:
 antlr-runtime-3.1.1.jar
 drools-api-5.0.1.jar
 drools-compiler-5.0.1.jar
 drools-core-5.0.1.jar
 joda-time-1.6.jar
 mvel2-2.0.10.jar

 Here's the error output:
 Exception in thread AWT-EventQueue-0 org.drools.RuntimeDroolsException:
 Unable to load dialect
 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:org.drools.rule.builder.dialect.java.JavaDialectConfiguration'
 at
 org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:274)
 at
 org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:259)
 at
 org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:176)
 at
 org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:153)
 at org.drools.compiler.PackageBuilder.init(PackageBuilder.java:242)
 at org.drools.compiler.PackageBuilder.init(PackageBuilder.java:142)
 at com.cbfp.findata.Rules.generateRuleBase(Rules.java:165)
 at com.cbfp.findata.Rules.addPackage(Rules.java:208)
 at com.cbfp.findata.Rules.createRules(Rules.java:64)
 ...
 Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not in
 the classpath
 at
 org.drools.rule.builder.dialect.java.JavaDialectConfiguration.setCompiler(JavaDialectConfiguration.java:94)
 at
 org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:55)
 at
 org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:270)
 ...

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Upgrade to Drools 5 - loss of performance

2009-05-29 Thread Scott Reed
Edson,
  I wasn't clear. I am getting this dialect error when I run the app outside
Eclipse. It works great in Eclipse.
Scott
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Upgrade to Drools 5 - loss of performance

2009-05-29 Thread Mark Proctor

Scott Reed wrote:

Edson,
  I wasn't clear. I am getting this dialect error when I run the app 
outside Eclipse. It works great in Eclipse.
If you are outside of eclipse, then you need a compiler - either Janino 
or JDT, it's always been that way.


Mark

Scott


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
  


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Upgrade to Drools 5 - loss of performance

2009-05-29 Thread Scott Reed
2009/5/29 Mark Proctor mproc...@codehaus.org

  Scott Reed wrote:

 Edson,
   I wasn't clear. I am getting this dialect error when I run the app
 outside Eclipse. It works great in Eclipse.

 If you are outside of eclipse, then you need a compiler - either Janino or
 JDT, it's always been that way.

 Mark


Ah! I'm glad it's so simple! I interpreted the dependencies file to say that
both compilers are optional. I figured Drools-Compiler would do the
compiling unless I wanted whatever special compiling features were offered
by Eclipse or Janino.
Thanks again,
  Scott
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Upgrade to Drools 5 - loss of performance

2009-05-28 Thread Scott Reed
I just upgraded our app from Drools 4 to 5 libraries. We just use the 
rules engine with DRL. The performance of the engine on our rulebase is 
unacceptably slow.  I assume there is something we need to do to our 
rules or the way we are configuring the engine to fix this. I don't see 
anything in the release notes about backwards compatibility issues. I 
would very much appreciate it if someone would direct me to any 
documentation that explains what needs to be done so our 4.0 rules 
perform at least as well as they did before the upgrade?

Thanks,
 Scott
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Upgrade to Drools 5 - loss of performance

2009-05-28 Thread Ingomar Otter
During a few experiments I did with MVEL, I have found that 2.x  
actually performs slower than 1.x in our case. Maybe that is a  
starting point.


Scott, do you have the possibility to profile your application   using  
4.x and   using 5.x? That should reveal the bottlenecks and I am sure  
that the dev crowd would be glad receiving that input.


 -- Ingomar


Am 28.05.2009 um 17:18 schrieb Scott Reed:

I just upgraded our app from Drools 4 to 5 libraries. We just use  
the rules engine with DRL. The performance of the engine on our  
rulebase is unacceptably slow.  I assume there is something we need  
to do to our rules or the way we are configuring the engine to fix  
this. I don't see anything in the release notes about backwards  
compatibility issues. I would very much appreciate it if someone  
would direct me to any documentation that explains what needs to be  
done so our 4.0 rules perform at least as well as they did before  
the upgrade?

Thanks,
Scott
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Upgrade to Drools 5 - loss of performance

2009-05-28 Thread Mark Proctor

Scott Reed wrote:
I just upgraded our app from Drools 4 to 5 libraries. We just use the 
rules engine with DRL. The performance of the engine on our rulebase 
is unacceptably slow.  I assume there is something we need to do to 
our rules or the way we are configuring the engine to fix this. I 
don't see anything in the release notes about backwards compatibility 
issues. I would very much appreciate it if someone would direct me to 
any documentation that explains what needs to be done so our 4.0 rules 
perform at least as well as they did before the upgrade?
sigh This is why we need people to get involved prior to a final 
release, so we can make sure we've done all necessary tuning for our 
user base. We have other users, who did get involved in this, saying we 
are faster for their use case. There are some use cases where 5 is 
slower, but it should be marginally slow, but it's scalability should be 
better for more facts and facts with larger number of fields.


Could you produce a self contained project, with a unit test, that 
demonstrates  this unnacceptable behaviour?


Thanks

Mark

Thanks,
 Scott
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users





___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Upgrade to Drools 5 - loss of performance

2009-05-28 Thread Edson Tirelli
   Scott,

   As others already mentioned, your e-mail does not help much. We need to
know what is unacceptably slow. How much slower is that? 10%, 100%, 1000%?
Also, we need a description of your use case: what kind of rules do you use,
how many rules, how many facts, etc. Finally, we need a way to reproduce the
problem.

   So, if you can provide more info, we might be able to help.

[]s
Edson

2009/5/28 Scott Reed sr...@avacoda.com

 I just upgraded our app from Drools 4 to 5 libraries. We just use the rules
 engine with DRL. The performance of the engine on our rulebase is
 unacceptably slow.  I assume there is something we need to do to our rules
 or the way we are configuring the engine to fix this. I don't see anything
 in the release notes about backwards compatibility issues. I would very much
 appreciate it if someone would direct me to any documentation that explains
 what needs to be done so our 4.0 rules perform at least as well as they did
 before the upgrade?
 Thanks,
  Scott
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Upgrade to Drools 5 - loss of performance

2009-05-28 Thread Scott Reed

Edson,
 I figured I must have missed some docs explaining changes required for 
the upgrade. If I suspected this was an inherent problem with the 5.0 
release I'd have supplied lots of info. I am inferring from the response 
that there are no known issues with 5.0 upgrade so I'll do my own 
investigation for a while. Let's hope I find something unrelated to the 
Drools.

 Scott

Edson Tirelli [5/28/2009 12:52 PM] wrote:


   Scott,

   As others already mentioned, your e-mail does not help much. We 
need to know what is unacceptably slow. How much slower is that? 
10%, 100%, 1000%? Also, we need a description of your use case: what 
kind of rules do you use, how many rules, how many facts, etc. 
Finally, we need a way to reproduce the problem.


   So, if you can provide more info, we might be able to help.

[]s
Edson

2009/5/28 Scott Reed sr...@avacoda.com mailto:sr...@avacoda.com

I just upgraded our app from Drools 4 to 5 libraries. We just use
the rules engine with DRL. The performance of the engine on our
rulebase is unacceptably slow.  I assume there is something we
need to do to our rules or the way we are configuring the engine
to fix this. I don't see anything in the release notes about
backwards compatibility issues. I would very much appreciate it if
someone would direct me to any documentation that explains what
needs to be done so our 4.0 rules perform at least as well as they
did before the upgrade?
Thanks,
 Scott
___
rules-users mailing list
rules-users@lists.jboss.org mailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com http://www.jboss.com


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
  
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Upgrade to Drools 5 - loss of performance

2009-05-28 Thread Edson Tirelli
 Indeed, at this point we are not aware of any performance problems. Of
course all the features we added may add a bit of overhead, but in our tests
that was completely offset by the improvements we made. The elimination of
shadow facts by itself is a huge boost for use cases with lots of facts or
facts with many fields. (just to mention one case)

 Keep us posted and if you submit more info, please include the actual
versions of the jars you are using of Drools and MVEL.

 Edson



2009/5/28 Scott Reed sr...@avacoda.com

  Edson,
   I figured I must have missed some docs explaining changes required for
 the upgrade. If I suspected this was an inherent problem with the 5.0
 release I'd have supplied lots of info. I am inferring from the response
 that there are no known issues with 5.0 upgrade so I'll do my own
 investigation for a while. Let's hope I find something unrelated to the
 Drools.
   Scott


 Edson Tirelli [5/28/2009 12:52 PM] wrote:


Scott,

As others already mentioned, your e-mail does not help much. We need to
 know what is unacceptably slow. How much slower is that? 10%, 100%, 1000%?
 Also, we need a description of your use case: what kind of rules do you use,
 how many rules, how many facts, etc. Finally, we need a way to reproduce the
 problem.

So, if you can provide more info, we might be able to help.

 []s
 Edson

 2009/5/28 Scott Reed sr...@avacoda.com

 I just upgraded our app from Drools 4 to 5 libraries. We just use the
 rules engine with DRL. The performance of the engine on our rulebase is
 unacceptably slow.  I assume there is something we need to do to our rules
 or the way we are configuring the engine to fix this. I don't see anything
 in the release notes about backwards compatibility issues. I would very much
 appreciate it if someone would direct me to any documentation that explains
 what needs to be done so our 4.0 rules perform at least as well as they did
 before the upgrade?
 Thanks,
  Scott
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




 --
  Edson Tirelli
  JBoss Drools Core Development
  JBoss, a division of Red Hat @ www.jboss.com

 --

 ___
 rules-users mailing 
 listrules-us...@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users


 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Upgrade to Drools 5 - loss of performance

2009-05-28 Thread Scott Reed

Mark,
 I'm sorry I was unable to participate in pre-release testing. I didn't 
think we had an especially unusual application. It's under 100 rules 
with some simple evals and moderate processing on the consequence side. 
I'll try Ingomar's suggestion and get profiles and, if necessary, I'll 
pack it up send it to you.

 Scott
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users