Gentoo Archives: gentoo-java

From: Adam Carter <Adam.Carter@×××××××××.au>
To: "gentoo-java@l.g.o" <gentoo-java@l.g.o>
Subject: [gentoo-java] Memory heap size problem
Date: Mon, 04 May 2009 02:15:57
Message-Id: 5602B0BD6D59AE4791BE83104940118DC11A58D8@excprdmbxw002.optus.com.au
1 A cisco web java gui is complaing "Your current java memory heap size is less than 256 MB. You must increate the Java memory heap size" etc. On windows and on a previous gentoo x86 box putting -Xmx256m in the java applet runtime settings makes it work. This box is a newly build amd64.
2
3 Looks like the .jnlp is setting the memory;
4
5 sphinx deployment # grep max /tmp/idm-1.jnlp
6 <j2se version="1.4+" initial-heap-size="64m" max-heap-size="256m"/>
7
8 And the app is running with the required Xmx256m parameter;
9
10 sphinx deployment # pgrep -lf java
11 10147 /opt/sun-jdk-1.6.0.13/jre/bin/java -Xmx256m -Xbootclasspath/a:/opt/sun-jdk-1.6.0.13/jre/lib/javaws.jar:/opt/sun-jdk-1.6.0.13/jre/lib/deploy.jar:/opt/sun-jdk-1.6.0.13/jre/lib/plugin.jar -classpath /opt/sun-jdk-1.6.0.13/jre/lib/deploy.jar -Djnlpx.vmargs=-Xmx256m -Djnlpx.jvm=/opt/sun-jdk-1.6.0.13/jre/bin/java -Djnlpx.splashport=36054 -Djnlpx.home=/opt/sun-jdk-1.6.0.13/jre/bin -Djnlpx.remove=false -Djnlpx.offline=false -Djnlpx.relaunch=true -Djnlpx.heapsize=67108864,268435456 -Djava.security.policy=file:/opt/sun-jdk-1.6.0.13/jre/lib/security/javaws.policy -DtrustProxy=true -Xverify:remote com.sun.javaws.Main file:///tmp/idm-9.jnlp
12
13 So it looks like it should work - any ideas on how to fix this? (sun-jdk-1.6.0.13, also tried a 1.5 but had the same problem).

Replies

Subject Author
Re: [gentoo-java] Memory heap size problem Vlastimil Babka <caster@g.o>
Re: [gentoo-java] Memory heap size problem gnul <nullchar@×××××.com>