* [gentoo-java] Memory heap size problem
@ 2009-05-04 2:15 Adam Carter
2009-05-04 8:46 ` Vlastimil Babka
2009-05-04 17:09 ` gnul
0 siblings, 2 replies; 4+ messages in thread
From: Adam Carter @ 2009-05-04 2:15 UTC (permalink / raw
To: gentoo-java@lists.gentoo.org
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-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
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).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-java] Memory heap size problem
2009-05-04 2:15 [gentoo-java] Memory heap size problem Adam Carter
@ 2009-05-04 8:46 ` Vlastimil Babka
2009-05-04 23:45 ` Adam Carter
2009-05-04 17:09 ` gnul
1 sibling, 1 reply; 4+ messages in thread
From: Vlastimil Babka @ 2009-05-04 8:46 UTC (permalink / raw
To: Adam Carter; +Cc: gentoo-java@lists.gentoo.org
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.
Hi,
I don't know this app, but I'd just try 512m instead of 256m... amd64
tends to need more than x86 :) I'm not sure the app can test the
parameter directly, they probably run out of heap and suggest this size
which was known working on x86.
Vlastimil
> 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-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
>
> 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).
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-java] Memory heap size problem
2009-05-04 2:15 [gentoo-java] Memory heap size problem Adam Carter
2009-05-04 8:46 ` Vlastimil Babka
@ 2009-05-04 17:09 ` gnul
1 sibling, 0 replies; 4+ messages in thread
From: gnul @ 2009-05-04 17:09 UTC (permalink / raw
To: Adam Carter; +Cc: gentoo-java@lists.gentoo.org
You might try some other flags such as -server (which just uses a
different set of JVM defaults) as well as -XX:MaxPermSize
http://www.unixville.com/~moazam/stories/2004/05/17/maxpermsizeAndHowItRelatesToTheOverallHeap.html
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.
good luck.
-gnul
On Sun, May 3, 2009 at 8:15 PM, Adam Carter <Adam.Carter@optus.com.au> 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-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
>
> 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).
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [gentoo-java] Memory heap size problem
2009-05-04 8:46 ` Vlastimil Babka
@ 2009-05-04 23:45 ` Adam Carter
0 siblings, 0 replies; 4+ messages in thread
From: Adam Carter @ 2009-05-04 23:45 UTC (permalink / raw
To: gentoo-java@lists.gentoo.org
> > 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.
>
> Hi,
>
> I don't know this app, but I'd just try 512m instead of 256m... amd64
> tends to need more than x86 :) I'm not sure the app can test the
> parameter directly, they probably run out of heap and suggest
> this size which was known working on x86.
The max-heap-size="256m" seems to override -Xmx512m - when I run pgrep is still shows up as -Xmx256m. Is this expected?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-04 23:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-04 2:15 [gentoo-java] Memory heap size problem Adam Carter
2009-05-04 8:46 ` Vlastimil Babka
2009-05-04 23:45 ` Adam Carter
2009-05-04 17:09 ` gnul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox