Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-java
Navigation:
Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: Adam Carter <Adam.Carter@...>
From: Vlastimil Babka <caster@g.o>
Subject: Re: Memory heap size problem
Date: Mon, 04 May 2009 10:46:20 +0200
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).
> 
> 



Replies:
RE: Memory heap size problem
-- Adam Carter
References:
Memory heap size problem
-- Adam Carter
Navigation:
Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Memory heap size problem
Next by thread:
RE: Memory heap size problem
Previous by date:
Memory heap size problem
Next by date:
Re: Memory heap size problem


Updated Jun 17, 2009

Summary: Archive of the gentoo-java mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.