List Archive: gentoo-java
Note: Due to technical difficulties, the Archives are currently not up to date.
provides an alternative service for most mailing lists.c.f. bug 424647
You might try some other flags such as -server (which just uses a
different set of JVM defaults) as well as -XX:MaxPermSize
You may also try to enable logging in the app or check the logs to see
if it is an OutOfMemory exception (heap) or a PermGen error.
There are also JVM flags such as -Xss and -XX:ThreadStackSize you can
play with too.
On Sun, May 3, 2009 at 8:15 PM, Adam Carter <Adam.Carter@...> wrote:
> 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.
> Looks like the .jnlp is setting the memory;
> sphinx deployment # grep max /tmp/idm-1.jnlp
> <j2se version="1.4+" initial-heap-size="64m" max-heap-size="256m"/>
> And the app is running with the required Xmx256m parameter;
> sphinx deployment # pgrep -lf java
> 10147 /opt/sun-jdk-220.127.116.11/jre/bin/java -Xmx256m -Xbootclasspath/a:/opt/sun-jdk-18.104.22.168/jre/lib/javaws.jar:/opt/sun-jdk-22.214.171.124/jre/lib/deploy.jar:/opt/sun-jdk-126.96.36.199/jre/lib/plugin.jar -classpath /opt/sun-jdk-188.8.131.52/jre/lib/deploy.jar -Djnlpx.vmargs=-Xmx256m -Djnlpx.jvm=/opt/sun-jdk-184.108.40.206/jre/bin/java -Djnlpx.splashport=36054 -Djnlpx.home=/opt/sun-jdk-220.127.116.11/jre/bin -Djnlpx.remove=false -Djnlpx.offline=false -Djnlpx.relaunch=true -Djnlpx.heapsize=67108864,268435456 -Djava.security.policy=file:/opt/sun-jdk-18.104.22.168/jre/lib/security/javaws.policy -DtrustProxy=true -Xverify:remote com.sun.javaws.Main file:///tmp/idm-9.jnlp
> So it looks like it should work - any ideas on how to fix this? (sun-jdk-22.214.171.124, also tried a 1.5 but had the same problem).