openjdk,icedtea - Xmx option mandatory
Andrew Haley
aph at redhat.com
Mon Aug 11 01:37:40 PDT 2008
Roberto Mannai wrote:
> In the while, I downloaded from:
> https://api.opensuse.org/build/openSUSE:Factory/standard/i586/java-1_6_0-openjdk/java-1_6_0-openjdk-1.2_b09-18.16.src.rpm
> the last factory opensuse java version.
>
> If I'm not wrong, the Xmx setting is done into the file:
> openjdk-6-src-b09-11_apr_2008-fedora/openjdk/jdk/make/docs/Makefile
>
> Where the default size should be:
> MAX_VM_MEMORY = 512
>
> That default value makes the process crash on my PC, which has 512 mb
> of RAM (java -Xmx512m -version crashes, too).
>
> I think the SUN default value was 384 - see:
> https://jdk-jrl-sources.dev.java.net/source/browse/jdk-jrl-sources/jdk6u3/trunk/j2se/make/docs/Makefile?view=markup
>
> In my PC, I can run successfully:
> java -Xmx384m -version
>
> If this discussion of default value was correct would mean that
> default openjdk / icedtea RPM
> versions will not work out of the box (without patches) on PCs with
> scarce RAM like mine. What do you think?
That's certainly possible. The size of the initial heap is set dynamically,
depending on your machine's capacity. However, you are the only person
who has ever reported this problem. I was wondering: what swap settings
are you using?
Andrew.
More information about the distro-pkg-dev
mailing list