Project

General

Profile

Actions

Bug #3106

open

Out of memory while opening all demos, is -Xss5m or SVG the problem?

Added by Christopher Brooks about 16 years ago. Updated about 15 years ago.

Status:
New
Priority:
Normal
Category:
interface
Target version:
Start date:
01/28/2008
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3106

Description

I'm marking this as having a target milestone of 1.0.0rc1 because
I suspect we should remove -Xss5m from build.xml because it means
we cannot open up very many models. Once that is addressed, the
milestone should be changed to something later.

Under Windows XP with Java 1.5.0_11, Kepler runs out of memory when opening all the demos whereas Ptolemy does not.

It could be that SVG is the issue, or it could be because Kepler
does not do lazy evaluation and thus loads in everything.

To replicate
1) Start Kepler with "ant run-dev", which uses -Xmx512m
2) Help -> Documentation -> Ptolemy Documentation -> Acknowledgements
3) Click on the copyright link at the bottom
4) Click on copyrights in
"Other copyrights about this configuration (may take a moment to run)."
5) Click on about in
"Other information about this configuration."
6) In the "ptolemy/configs/doc/completeDemosPtinyKepler.htm" line, click on
"Open the .htm, .html, .xml and .pdf "

Roughly 25 windows will open and eventually, we get:

Caused by: java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)

Under Windows, the task manager says we are using 330Mb of memory,

Editing the run-dev entry in build.xml and removing:
<jvmarg value="-Xss5m"/>
means we get to 580Mb in the task manager and then Kepler hangs with the
CPU Usage at 99%

java -X says that -Xss
-Xss<size> set java thread stack size

Perhaps -Xss should be removed from build.xml?

If I increase the Xmx from 512 to 1024, then the show all demos works,
At the end the amount of memory reported by the Task Manager is
258Mb, with a max of 608Mb
Running the last demo (sr/demo/TrafficLight/TrafficLight.xml) shows
this memory usage under Kepler:
[java] 14471 ms. Memory: 968096K Free: 211261K (22%)

In contrast, doing the same thing with Ptolemy (no SVG), the task
manager reports 142Mb with a max of 142Mb. Running the same demo
reports:
6780 ms. Memory: 117172K Free: 24710K (21%)

Actions

Also available in: Atom PDF