[kepler-dev] [Bug 3106] New: - Out of memory while opening all demos, is -Xss5m or SVG the problem?

bugzilla-daemon@ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Mon Jan 28 20:54:18 PST 2008


           Summary: Out of memory while opening all demos, is -Xss5m or SVG
                    the problem?
           Product: Kepler
           Version: 1.0.0beta3
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: minor
          Priority: P2
         Component: interface
        AssignedTo: brooke at nceas.ucsb.edu
        ReportedBy: cxh at eecs.berkeley.edu
         QAContact: kepler-dev at ecoinformatics.org

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
6780 ms. Memory: 117172K Free: 24710K (21%)

More information about the Kepler-dev mailing list