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@....
--------------------------------------------------------------------