OpenJDK not ready for virtualized environments
Andrew Haley
aph at redhat.com
Tue Jul 6 07:05:34 PDT 2010
On 07/03/2010 05:56 AM, Jaroslav Tulach wrote:
> My message to gmane.comp.java.openjdk.distro-packaging.devel never appeared.
> Trying email as a last resort...
>
> Subject: OpenJDK not ready for virtualized environments
> By: Jaroslav Tulach <jaroslav.tulach at sun.com>
> Date: Mon, 14 Jun 2010 18:07:25 +0200
>
> Hello guys,
> I have troubles using OpenJDK under mine VirtualBox. See:
> http://wiki.apidesign.org/wiki/Virtualization#Too_Big_Initial_Limit
>
> After a discussion at #openjdk it looks like like a result of changing the
> defaults in amount of heap size and perm gen size. I believe the change is
> wrong. It shall rather check the # of available memory and if lower than 1GB
> stick with old defaults.
The heap and stack sizes are really only a guess, and on most GNU/Linux
environments won't cause any problem. All that asking for a large heap
will do is pre-allocate the address space in the page tables: it doesn't
use the memory until it's actually needed.
I'm wondering if there's something odd about the vm.overcommit_memory
setting in the system you're been using.
Andrew.
More information about the distro-pkg-dev
mailing list