Gentoo Archives: gentoo-java

From: Vlastimil Babka <caster@g.o>
To: Adam Carter <Adam.Carter@×××××××××.au>
Cc: "gentoo-java@l.g.o" <gentoo-java@l.g.o>
Subject: Re: [gentoo-java] Memory heap size problem
Date: Mon, 04 May 2009 08:46:55
Message-Id: 49FEAB5C.2040104@gentoo.org
In Reply to: [gentoo-java] Memory heap size problem by Adam Carter
1 Adam Carter wrote:
2 > A cisco web java gui is complaing "Your current java memory heap size
3 > is less than 256 MB. You must increate the Java memory heap size"
4 > etc. On windows and on a previous gentoo x86 box putting -Xmx256m in
5 > the java applet runtime settings makes it work. This box is a newly
6 > build amd64.
7
8 Hi,
9
10 I don't know this app, but I'd just try 512m instead of 256m... amd64
11 tends to need more than x86 :) I'm not sure the app can test the
12 parameter directly, they probably run out of heap and suggest this size
13 which was known working on x86.
14
15 Vlastimil
16
17 > Looks like the .jnlp is setting the memory;
18 >
19 > sphinx deployment # grep max /tmp/idm-1.jnlp <j2se version="1.4+"
20 > initial-heap-size="64m" max-heap-size="256m"/>
21 >
22 > And the app is running with the required Xmx256m parameter;
23 >
24 > sphinx deployment # pgrep -lf java 10147
25 > /opt/sun-jdk-1.6.0.13/jre/bin/java -Xmx256m
26 > -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
27 > -classpath /opt/sun-jdk-1.6.0.13/jre/lib/deploy.jar
28 > -Djnlpx.vmargs=-Xmx256m
29 > -Djnlpx.jvm=/opt/sun-jdk-1.6.0.13/jre/bin/java
30 > -Djnlpx.splashport=36054 -Djnlpx.home=/opt/sun-jdk-1.6.0.13/jre/bin
31 > -Djnlpx.remove=false -Djnlpx.offline=false -Djnlpx.relaunch=true
32 > -Djnlpx.heapsize=67108864,268435456
33 > -Djava.security.policy=file:/opt/sun-jdk-1.6.0.13/jre/lib/security/javaws.policy
34 > -DtrustProxy=true -Xverify:remote com.sun.javaws.Main
35 > file:///tmp/idm-9.jnlp
36 >
37 > So it looks like it should work - any ideas on how to fix this?
38 > (sun-jdk-1.6.0.13, also tried a 1.5 but had the same problem).
39 >
40 >

Replies

Subject Author
RE: [gentoo-java] Memory heap size problem Adam Carter <Adam.Carter@×××××××××.au>