Well, there are two things you can do. One is just tell Java it's allowed to use more memory than the default quota. For example, you can say

java -Xmx512m jess.Main

to let Java run Jess in 512 megabytes of memory, rather than the default (which may be 64 or 128m, depending on your Java version.)

The other thing you can do is write your Jess rules to use less memory. In general, this means writing maximally specific patterns, and putting the most specific patterns first in the rule, to reduce the number of partial matches generated. The chapter in the manual about the Rete algorithm and Jess's implementation talks some about this.



On Apr 2, 2009, at 12:22 AM, Leo Anbarasan wrote:

Dear All,

I have problem in running jess engine....

It works fine with the simple rule....

But, when i add big rule... and run the jess engine it show "OutOfMemoryError - Java heap space".

How to over come this problem....

Thanks in advance...

Awaiting for your reply....

--
With Love
Leo Anbarasan M
India

---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences          Phone: (925) 294-2154
Sandia National Labs
PO Box 969, MS 9012                            [email protected]
Livermore, CA 94550                             http://www.jessrules.com





--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [email protected]'
in the BODY of a message to [email protected], NOT to the list
(use your own address!) List problems? Notify [email protected].
--------------------------------------------------------------------

Reply via email to