« Return to Thread: JESS: about-OutOfMemoryError:

Re: JESS: about-OutOfMemoryError:

by Weijing Bai :: Rate this Message:

Reply to Author | View in Thread

I will try that, thanks very much~


 
On Sun, May 31, 2009 at 1:42 AM, Ernest Friedman-Hill <ejfried@...> wrote:

On May 30, 2009, at 12:40 PM, Weijing Bai wrote:

hi,everybody

I have some outofmemory problem, does anyone know how to slolve it?


Jess is a programming language like Java, C++, Python, or any other. In any programming language, it's possible to write a program which uses more memory than you have available. There's no general solution other than "fix your program to use less memory!"

That said, in Jess, the problem is often rules with many patterns that are too general, and which therefore create too many partial matches. Put the most specific patterns first in your rules, make each pattern as specific as possible, and don't use the "test" conditional element, but rather do your matching directly in the patterns.

You can also use the Java -XmxNNm switch to increase the amount of memory available to the JVM.


---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences, Sandia National Laboratories
PO Box 969, MS 9012, Livermore, CA 94550
http://www.jessrules.com







--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users you@...'
in the BODY of a message to majordomo@..., NOT to the list
(use your own address!) List problems? Notify owner-jess-users@....
--------------------------------------------------------------------


 « Return to Thread: JESS: about-OutOfMemoryError: