-XX:+MaximizeHeapSize?

Florian Weimer fw at deneb.enyo.de
Wed Jul 11 07:25:10 UTC 2007


* Jon Masamitsu:

> Comments on this proposal?

In this mode, you really should mmap the heap PROT_NONE in the
beginning (so that you reserve a continuous memory area, which is
required AFAIK), and use mprotect to actually allocate backing store
when the used portion of the heap grows.  Without this change, it's
impossible to run more than two or three VMs on systems which do not
support memory overcommitment (which is getting more and more common
on Linux).



More information about the hotspot-gc-dev mailing list