We've run into this issue locally
Try adding -Xmx256m to increase the maximum heap size to 256Mb.

Here is the usage:
cxh@maury 1% java -help
Usage: java [-options] class [args...]
           (to execute a class)
   or  java -jar [-options] jarfile [args...]
           (to execute a jar file)

where options include:
    -cp -classpath <directories and zip/jar files separated by :>
              set search path for application classes and resources
    -D<name>=<value>
              set a system property
    -verbose[:class|gc|jni]
              enable verbose output
    -version  print product version
    -? -help  print this help message
    -X        print help on non-standard options
cxh@maury 2% java -X
    -Xbootclasspath:<directories and zip/jar files separated by :>
                      set search path for bootstrap classes and resources
    -Xnoclassgc       disable class garbage collection
    -Xms<size>        set initial Java heap size
    -Xmx<size>        set maximum Java heap size
    -Xrs              reduce the use of OS signals
    -Xcheck:jni       perform additional checks for JNI functions
    -Xrunhprof[:help]|[:<option>=<value>, ...]
                      perform heap, cpu, or monitor profiling
    -Xdebug           enable remote debugging
    -Xfuture          enable strictest checks, anticipating future default

The -X options are non-standard and subject to change without notice.
cxh@maury 3% 

To have this be the default, edit $PTII/bin/ptinvoke.in and add -Xmx256m 
to the line at the bottom that invokes java and then run
make in $PTII/bin

-Christopher
--------


    Hi all ,
    i'm building very large models with ptolemy II and i observe some worthing
    notes to be investigated : 1st under the SDF domain :
    i can build models that is constructed from about 5000 actors all running
    in concurrence like the butterfly model in the quick tour .
    and when i start opening the file the java.exe process uses the cpu 100%
    and consumes the physical available memory and when i run the simualtion
    with about 5000 iterations the java .exe starts to eat up the memory and
    executes till IT REACHES THE 80MB OF THE MEMORY AND THEN STOPS GIVING AN
    IDLE STATUS .
    2nd under the DE domin using complex model that contains about 1000 actor
    in concurrence like the INSPECTION PARADOX IN THE PTOLEMY QUICK TOUR .
    The same happend and the java.exe uses the cpu 100% and eats up the memory
    till it reaches the barrier of the 80 MB and then stops .
    so we can't at all use more than memory space of about 80
    MBapproximately.!!!!!
    i increased the virtual memory up to 567 MB to handle the 128 MB ram i have
    on my system but it reaches the constraint and stops .
    i run the same models on 256 MB RAm  machine and it also stops after
    the80MB .
    i'm using windows NT 2000 .
    and when i investigate the reason of that i found a bug in the JAVA
    reported by Sun on their web that java can't handle more than a limited
    work space !!!
    please any one who suffered from the same or encounter such a memory
    constraint reply here with his feedback .
    i made a java native code that consumes the memory as it runs and it really
    hangs after about the 80 MB 
    when i handle the bug like they said in their url the program runs to up to
    about 100 Mb and still working !!!!
    i'm not a software professional so i can;t figure out where is the trouble 
   .
    is it a constraint in Ptolemy II , java, operating system , memory .?????
    waiting for ur reply and ur previous experience to such a sort of problems 
   .
    thank u Regards ,
    MO. Salem 
    
    _____________________________________________
    Free email with personality! Over 200 domains!
    http://www.MyOwnEmail.com
    
    
    ---------------------------------------------------------------------------
   -
    Posted to the ptolemy-hackers mailing list.  Please send administrative
    mail for this list to: [EMAIL PROTECTED]
--------

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to