I think Aleksandr Shneyderman wrote:
> 
> I was wondering how volumous is Jess engine?
> Suppose I just created one and it has no facts, or rules defined for it.
> What sould/would the RAM consumption look like?
> 

Well, let's ask Jess.

  [EMAIL PROTECTED] Jess ]$ java -mx16m -ms16m jess.Main
  Jess, the Java Expert System Shell
  Copyright (C) 2003 E.J. Friedman Hill and the Sandia Corporation
  Jess Version 7.0a1 12/30/2003

  Jess> (bind ?r (call Runtime getRuntime))
  <External-Address:java.lang.Runtime>
  Jess> (call System gc)
  Jess> (printout t (- (* 1024 1024 16) (?r freeMemory)) crlf)
  273272

So a JVM with Jess loaded without any rules or anything takes up about
270K. I wrote a Java program that does nothing but printout the same
equation as above, and the result was 190352. Therefore, an empty
instance of Jess takes up about 80K of heap.

With a trivial rule and a trivial fact asserted, I got 275720 -- i.e.,
2K more free memory! In other words, the amount per rule and per fact
is in the noise on this scale.


> It might be that it is really nothing before I supply the first rule/assert,
> in that case suppose I have one of both and each of which takes "no"
> space.
> 
> Does anyone have a rough idea?
> 
> -- 
> Thanks,
> Alex.
> 
> --------------------------------------------------------------------
> 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]
> --------------------------------------------------------------------
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Science and Engineering PSEs        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]
--------------------------------------------------------------------

Reply via email to