In comp.soft-sys.ptolemy, Dan writes:

> Are we supposed to report problems with this beta release HERE?

Sure, ptolemy-hackers is a good place to report problems.

> I am having trouble with PtII-5.0-beta throwing "OutOfMemory"
> Exceptions after the second or third run of a simple SDF model.
> PtII-4.0.1 does not have this problem.

Are you running from the prebuilt Windows installer under Windows?
Or, did you recompile from scratch.  If so, on what platform?

What sdf model are you running?  Is it one of the demos we ship, or a
model of your own?

Note that if you compiled Ptolemy II by hand, then you can run
$PTII/bin/vergil -v
which will show you the command line that Ptolemy II started with.
One of the arguments should be "-Xmx256M" which limits the maximum
memory size to 256Mb

If you are running Ptolemy II using the Windows installer, the
memory sizes are set in the *.lax files. For example
vergil-full.lax sets the memory size for the "vergil-full" command.

> I suspect the new beta has a memory leak somewhere, which I did not
> know was possible with Java.

Java has Garbage Collection, so you need not free memory explicitly,
it should "just work:

If an object has a references to it, then it might not be eligible for
garbage collection and thus might be a leak.  There are lots of ways
to leak memory.

See
http://www.javaworld.com/javaworld/javaqa/1999-08/04-qa-leaks.html

There are a few notes about memory leaks in
$PTII/doc/coding/performance.htm
or
http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII5.0/ptII5.0-beta/doc/coding/performance.htm

If you use Eclipse, then this plugin might be of use:
http://sourceforge.net/projects/eclipsecolorer

_Christopher

Christopher Brooks (cxh at eecs berkeley edu) University of California
Programmer/Analyst Chess/Ptolemy/Trust        US Mail: 558 Cory Hall #1770
ph: 510.643.9841 fax:510.642.2739             Berkeley, CA 94720-1770
home: (F-Tu) 707.665.0131 (W-F) 510.655.5480  (office: 400A Cory)


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

Reply via email to