I think Bogdan Werth wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hello again, > I think I found the performance leak in my model - after 1000ish > simulation steps Jess becomes very slow. As an example a simple assert > takes up to 4sec. (sometimes longer). In each step I have 7000ish rules > which fire and 1000ish facts are asserted and retracted. Is this too > much for Jess? What can I do to make it run faster. It is pretty fast at > the beginning but starts limping dramatically towards the end. > > Great Thanks for Help.
Just as in any other computing situation, measurement is much better than speculation. Use a profiler, java.exe's -Xverbose=gc switch, Jess's "matches" command, and whatever other tools you have available to check for the two most likely and interrelated causes: memory exhaustion (i.e., Java is spending all its time garbage collecting) or polynomial numbers of partial matches (i.e., you've written one or more rules whose pattern-matching performance will be proportional to the square of the number of facts, or worse.) --------------------------------------------------------- Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov -------------------------------------------------------------------- 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] --------------------------------------------------------------------
