<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Would like some advice regarding using Decision Tables in DROOLS 5.6.0 Final.&nbsp; We have decision tables with over 12,000 rows.&nbsp;&nbsp; It is a basic &#8216;look-up&#8217; table with 3 conditions and 2 actions.&nbsp; The conditions are, for example:&nbsp;&nbsp; Company = X Dept = X&nbsp;&nbsp; Class = X then value = X and log X.&nbsp;&nbsp; When I reduced the number of rows to approx. 500 . .. it works.<o:p></o:p></p><p class=MsoNormal>I have set the max memory in the JVM to 2 gigs.&nbsp;&nbsp; We have tried compiling the decision tables using the spreadsheet compiler as well as the decision table compiler.<o:p></o:p></p><p class=MsoNormal>Below is the error when using the decision table compiler.&nbsp;&nbsp; However, we get the same PermGen space error with the spreadsheet compiler.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Obviously, we need to be able to have more than 500 rows in our decision table(s).&nbsp;&nbsp;&nbsp; Any advice would be appreciated.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:Consolas;color:red'>Aug 14, 2014 6:33:09 PM com.macys.test.rules.engine.AttribDecisionTbl main</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>INFO: found </span><a href="file:///c:\attribute-data.xls"><span style='font-size:10.0pt;font-family:Consolas;color:red'>file:c:\attribute-data.xls</span></a> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>Aug 14, 2014 6:33:10 PM com.macys.test.test_drools.RuleRunner loadRules</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>INFO: Loading file: log-rules.drl</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>Aug 14, 2014 6:33:10 PM com.macys.test.test_drools.RuleRunner loadRuleFile</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>INFO: found rule </span><a href="file:///\\log-rules.drl"><span style='font-size:10.0pt;font-family:Consolas;color:red'>file:log-rules.drl</span></a> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>Aug 14, 2014 6:33:11 PM com.macys.test.test_drools.RuleRunner loadRules</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>INFO: Loading file: AttributeRules-MDSLife-V1.xls</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>Aug 14, 2014 6:33:11 PM com.macys.test.test_drools.RuleRunner loadExcelRules</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>INFO: found </span><a href="file:///\\AttributeRules-MDSLife-V1.xls"><span style='font-size:10.0pt;font-family:Consolas;color:red'>file:AttributeRules-MDSLife-V1.xls</span></a> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>Exception in thread &quot;main&quot; java.lang.OutOfMemoryError: PermGen space</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.ClassLoader.defineClass1(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>Native Method</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.ClassLoader.defineClass(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>ClassLoader.java:800</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.rule.JavaDialectRuntimeData$PackageClassLoader.fastFindClass(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>JavaDialectRuntimeData.java:624</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.util.CompositeClassLoader$CachingLoader.load(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>CompositeClassLoader.java:254</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.util.CompositeClassLoader$CachingLoader.load(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>CompositeClassLoader.java:237</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.util.CompositeClassLoader.loadClass(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>CompositeClassLoader.java:88</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.ClassLoader.loadClass(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>ClassLoader.java:358</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.rule.JavaDialectRuntimeData.wire(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>JavaDialectRuntimeData.java:434</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.rule.JavaDialectRuntimeData.wire(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>JavaDialectRuntimeData.java:429</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.rule.JavaDialectRuntimeData.onBeforeExecute(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>JavaDialectRuntimeData.java:257</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.rule.DialectRuntimeRegistry.onBeforeExecute(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>DialectRuntimeRegistry.java:139</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.compiler.PackageBuilder.reloadAll(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>PackageBuilder.java:1202</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.compiler.PackageBuilder.compileAllRules(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>PackageBuilder.java:951</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.compiler.PackageBuilder.addPackage(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>PackageBuilder.java:938</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.compiler.PackageBuilder.addPackageFromDecisionTable(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>PackageBuilder.java:451</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.compiler.PackageBuilder.addKnowledgeResource(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>PackageBuilder.java:715</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.builder.impl.KnowledgeBuilderImpl.add(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>KnowledgeBuilderImpl.java:51</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at com.macys.test.test_drools.RuleRunner.loadExcelRules(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>RuleRunner.java:161</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at com.macys.test.test_drools.RuleRunner.loadRules(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>RuleRunner.java:53</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at com.macys.test.test_drools.RuleRunner.runStatelessRules(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>RuleRunner.java:217</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><span style='font-size:10.0pt;font-family:Consolas;color:red'>&nbsp; &nbsp; &nbsp; &nbsp; at com.macys.test.rules.engine.AttribDecisionTbl.main(</span><u><span style='font-size:10.0pt;font-family:Consolas;color:#0062E1'>AttribDecisionTbl.java:99</span></u><span style='font-size:10.0pt;font-family:Consolas;color:red'>)</span> <br><br><br><o:p></o:p></p></div></body></html>