Re: [rules-users] DROOLS 5.6.0 Final Decision Table PermGen space OutOfMemoryError
by Jan Rose
Mark, thanks for responding. Do you have a recommendation as to how much I should
increase the perm gen space?
Also, is there anything else I can do to run my decision tables more efficiently?
Jan
try increasing your perm gen space.
Mark On 16 Aug 2014, at 04:11, Jan Rose <ufos at comcast.net> wrote: >
Would like some advice regarding using Decision Tables in DROOLS 5.6.0 Final.
We have decision tables with over 12,000 rows.
It is a basic ‘look-up’ table with 3 conditions and 2 actions.
The conditions are, for example: Company = X Dept = X Class = X then value = X and log X.
When I reduced the number of rows to approx. 500 . .. it works. > I have set the max memory in the JVM to 2 gigs.
We have tried compiling the decision tables using the spreadsheet compiler as well as the decision table compiler. >
Below is the error when using the decision table compiler.
However, we get the same PermGen space error with the spreadsheet compiler. > >
Obviously, we need to be able to have more than 500 rows in our decision table(s). Any advice would be appreciated. > >
Aug 14, 2014 6:33:09 PM com.macys.test.rules.engine.AttribDecisionTbl main > INFO: found file:c:\attribute-data.xls > Aug 14, 2014 6:33:10 PM com.macys.test.test_drools.RuleRunner loadRules > INFO: Loading file: log-rules.drl > Aug 14, 2014 6:33:10 PM com.macys.test.test_drools.RuleRunner loadRuleFile > INFO: found rule file:log-rules.drl > Aug 14, 2014 6:33:11 PM com.macys.test.test_drools.RuleRunner loadRules > INFO: Loading file: AttributeRules-MDSLife-V1.xls > Aug 14, 2014 6:33:11 PM com.macys.test.test_drools.RuleRunner loadExcelRules > INFO: found file:AttributeRules-MDSLife-V1.xls > Exception in thread "main" java.lang.OutOfMemoryError: PermGen space > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:800) > at org.drools.rule.JavaDialectRuntimeData$PackageClassLoader.fastFindClass(JavaDialectRuntimeData.java:624) > at org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader.java:254) > at org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader.java:237) > at org.drools.util.CompositeClassLoader.loadClass(CompositeClassLoader.java:88) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > at org.drools.rule.JavaDialectRuntimeData.wire(JavaDialectRuntimeData.java:434) > at org.drools.rule.JavaDialectRuntimeData.wire(JavaDialectRuntimeData.java:429) > at org.drools.rule.JavaDialectRuntimeData.onBeforeExecute(JavaDialectRuntimeData.java:257) > at org.drools.rule.DialectRuntimeRegistry.onBeforeExecute(DialectRuntimeRegistry.java:139) > at org.drools.compiler.PackageBuilder.reloadAll(PackageBuilder.java:1202) > at org.drools.compiler.PackageBuilder.compileAllRules(PackageBuilder.java:951) > at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:938) > at org.drools.compiler.PackageBuilder.addPackageFromDecisionTable(PackageBuilder.java:451) > at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:715) > at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:51) > at com.macys.test.test_drools.RuleRunner.loadExcelRules(RuleRunner.java:161) > at com.macys.test.test_drools.RuleRunner.loadRules(RuleRunner.java:53) > at com.macys.test.test_drools.RuleRunner.runStatelessRules(RuleRunner.java:217) > at com.macys.test.rules.engine.AttribDecisionTbl.main(AttribDecisionTbl.java:99) > > > _______________________________________________ > rules-users mailing list > rules-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140816/e86011b...
Sent from my iPad
11 years, 8 months
Kie-Spring Issue, not able to created Session as "prototype"
by mattmadhavan
Hello,
I have the following kie-spring xml definition to test my custom evaluater.
Please note the * type="stateless" scope="prototype"* in the xml
configuration. Everytime this session is looked up, I want a new instance of
the StatelessKieSession.
I am getting the same instance for both the look ups! Looks like the session
bean is created as a Singleton even though I specified prototype scope.
I really need to create prototype version of my StetelessKieSession on
demand ( I am using Camel routes) as I increase the number of JMS clients to
process the load. This is a critical feature I really require.
Any ideas please? Seems to that kie-spring is not really mature enough!
Thanks in advance!
Matt'M
--
View this message in context: http://drools.46999.n3.nabble.com/Kie-Spring-Issue-not-able-to-created-Se...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months
DROOLS 5.6.0 Final Decision Table PermGen space OutOfMemoryError
by Jan Rose
Would like some advice regarding using Decision Tables in DROOLS 5.6.0
Final. We have decision tables with over 12,000 rows. It is a basic
'look-up' table with 3 conditions and 2 actions. The conditions are, for
example: Company = X Dept = X Class = X then value = X and log X. When
I reduced the number of rows to approx. 500 . .. it works.
I have set the max memory in the JVM to 2 gigs. We have tried compiling
the decision tables using the spreadsheet compiler as well as the decision
table compiler.
Below is the error when using the decision table compiler. However, we get
the same PermGen space error with the spreadsheet compiler.
Obviously, we need to be able to have more than 500 rows in our decision
table(s). Any advice would be appreciated.
Aug 14, 2014 6:33:09 PM com.macys.test.rules.engine.AttribDecisionTbl main
INFO: found <file:///c:\attribute-data.xls> file:c:\attribute-data.xls
Aug 14, 2014 6:33:10 PM com.macys.test.test_drools.RuleRunner loadRules
INFO: Loading file: log-rules.drl
Aug 14, 2014 6:33:10 PM com.macys.test.test_drools.RuleRunner loadRuleFile
INFO: found rule <file:///\\log-rules.drl> file:log-rules.drl
Aug 14, 2014 6:33:11 PM com.macys.test.test_drools.RuleRunner loadRules
INFO: Loading file: AttributeRules-MDSLife-V1.xls
Aug 14, 2014 6:33:11 PM com.macys.test.test_drools.RuleRunner loadExcelRules
INFO: found <file:///\\AttributeRules-MDSLife-V1.xls>
file:AttributeRules-MDSLife-V1.xls
Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at
org.drools.rule.JavaDialectRuntimeData$PackageClassLoader.fastFindClass(Java
DialectRuntimeData.java:624)
at
org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader
.java:254)
at
org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader
.java:237)
at
org.drools.util.CompositeClassLoader.loadClass(CompositeClassLoader.java:88)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at
org.drools.rule.JavaDialectRuntimeData.wire(JavaDialectRuntimeData.java:434)
at
org.drools.rule.JavaDialectRuntimeData.wire(JavaDialectRuntimeData.java:429)
at
org.drools.rule.JavaDialectRuntimeData.onBeforeExecute(JavaDialectRuntimeDat
a.java:257)
at
org.drools.rule.DialectRuntimeRegistry.onBeforeExecute(DialectRuntimeRegistr
y.java:139)
at
org.drools.compiler.PackageBuilder.reloadAll(PackageBuilder.java:1202)
at
org.drools.compiler.PackageBuilder.compileAllRules(PackageBuilder.java:951)
at
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:938)
at
org.drools.compiler.PackageBuilder.addPackageFromDecisionTable(PackageBuilde
r.java:451)
at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:
715)
at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:5
1)
at
com.macys.test.test_drools.RuleRunner.loadExcelRules(RuleRunner.java:161)
at
com.macys.test.test_drools.RuleRunner.loadRules(RuleRunner.java:53)
at
com.macys.test.test_drools.RuleRunner.runStatelessRules(RuleRunner.java:217)
at
com.macys.test.rules.engine.AttribDecisionTbl.main(AttribDecisionTbl.java:99
)
11 years, 8 months
Drools 6.0.1: Pushing changes back to Workbench GIT using SSH
by dotrc
I am using workbench for managing my rules maven projects within the embedded
GIT repository. I am aware that using git:// protocol, I can clone an
existing rule repository; I can do this successfully.
For authoring rules, I want to use Eclipse (using EGit). I want to push my
commits back to the GIT repo. I understand that I'll have to use ssh
protocol instead of git for specifying the repo, something like this:
ssh://{userName}@localhost:8001/{repoName}
When we use a standard GIT repo like stash, it gives us an option to set our
public key on the stash server, but I'm not able to find a way to do that
with the embedded ssh server within workbench. Hence, I'm not able to
authenticate myself and perform a push.
We tried creating a private-public key pair using ssh-keygen and put that
within c:\users\<username>\.ssh and added the public key to
'authorized_keys(2) (though I know this may not be the right place) and then
used the private key as the identity file with ssh client directly from
cygwin, again to no avail.
Any pointers will be really appreciated.
Also, should the username be 'admin' or any other specific one for pushing?
Will the existing Windows username work?
Thanks,
Rishi
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-6-0-1-Pushing-changes-back-to-Wo...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months
Starnge problem with AbstractKieModule while testing, ignores "classes" folfer
by mattmadhavan
Hello,
While unit testing some of my DRL files I notice that, *AbstractKieModule *
does not look at main classpath. It only checks for the target\test-classes
and not target\classes folder at all!
I see the following warning on the coonsole!
*2014-08-12 14:15:25,426 [AbstractKieModule] [main] WARN No files found for
KieBase BREAST_MASTRT_KBase, searching folder
\working\MeasureMesh\org.facs.ncdb.measuresmesh\target\test-classes
*
/My configuration is:/
My .drl files arr in the package "org.xxxx.xxxxx.rules.breast.MASTRT of the
traget/classes folder, but its not loaded!
Any ideas please?
Thanks
Matt'M
--
View this message in context: http://drools.46999.n3.nabble.com/Starnge-problem-with-AbstractKieModule-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months
javax.jcr.ReferentialIntegrityException Error while Savign the Rule in Guvnor 5.1.1
by LaKhI ReDdY!!!!!!!!!!!
Hi All,
I am getting the following error while saving the Rule in Guvnor 5.1.1.
Could you please provide suggestions/inputs to resolve the below issue ? I
am using Oracle DB.
ERROR 11-08 12:31:22,129 (VersionableItem.java:checkout:637) Error
occured while checking out the asset
javax.jcr.ReferentialIntegrityException: Target node
298106d4-8786-46ba-b3a3-e9f42d93ac81 of REFERENCE property does not exist
at
org.apache.jackrabbit.core.state.SharedItemStateManager$Update.checkReferentialIntegrity(SharedItemStateManager.java:1056)
at
org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:574)
at
org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1110)
at
org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1140)
at
org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
at
org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
at
org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
at
org.apache.jackrabbit.core.version.VersionManagerImplBase$WriteOperation.save(VersionManagerImplBase.java:463)
at
org.apache.jackrabbit.core.version.VersionManagerImplBase.checkoutCheckin(VersionManagerImplBase.java:209)
Regards,
Lakshmi reddy
11 years, 8 months
Re: [rules-users] Annotation @PropertyReactive not works
by Davide Sottara
If I remember correctly this is a known issue. Unfortunately drools 5.6 is final and can't be patched. Downloading the source drl rather than the compiled pkg could be a workaround.
Please let me know if it works
Sent via the ASUS PadFone X, an AT&T 4G LTE smartphone
-------- Original Message --------
From:davidmoros <davidmoros(a)gmail.com>
Sent:Fri, 08 Aug 2014 05:03:29 -0500
To:rules-users@lists.jboss.org
Subject:[rules-users] Annotation @PropertyReactive not works
>I'm developing a system rules with drools, how any novice I found the problem
>of infinite loops, in unitary test I resolved with annotation
>@PropertyReactive and all works fine, until I uploaded my model and rules to
>Guvnor.
>Now I have developed a webservice that download the PKG from Guvnor, with
>change-set and seems that the annotation @PropertyReactive not works because
>of the same rule is reevaluated constantly although the consecuences the
>rule not change the value of attributes of LHS of rule, and infinite loops
>appears....
>The error only occurs when I download the PKG from Guvnor, if I refer the
>file DRL directly all woks fine
>
>Can anybody help me?
>
>I use 5.6.0.Final Version for Drools and Guvnor, Guvnor and my webservice
>are deployed in Tomcat
>
>Thanks in advance
>
>
>
>--
>View this message in context: http://drools.46999.n3.nabble.com/Annotation-PropertyReactive-not-works-t...
>Sent from the Drools: User forum mailing list archive at Nabble.com.
>_______________________________________________
>rules-users mailing list
>rules-users(a)lists.jboss.org
>https://lists.jboss.org/mailman/listinfo/rules-users
11 years, 8 months
Sequential and Decision Tables
by sjrcgtek
Apologies if this is already answered but I could not find it.
Drools Version 6.1.0.Final
I have three Excel DTs which I would like to fire in order. The Sequential
option appears to just order the rules within an excel DT. I confirmed that
by printing the resulting rules and see that the generated rules from
different sheets have the same priority.
I can manually set the PRIORITY in the actual sheets, but that makes
inserting sheets or even lines in a sheet cumbersome.
Is there a way to tell drools to fire all rules across all DT's
sequentially?
Thanks.
--
View this message in context: http://drools.46999.n3.nabble.com/Sequential-and-Decision-Tables-tp403063...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months