JEP 141: Increase the Client VM's Default Heap Size

Michael Bien mbien at
Thu Feb 23 08:42:44 UTC 2012

On 02/23/2012 05:20 AM, Kirk Pepperdine wrote:
> Hi,
>> What would be interesting is a flag which specifies a range. For example -Xmx1g_2g. This would tell the JVM to take 2g if possible and scale down to 1g if not.
> Current tuning strategy is to use -Xms1g -Xmx2g with parallel collectors as these will adapt. Unfortunately CMS doesn't resize and a Concurrent Mode Failure always happens under conditions where a reduction in size would not be warranted so..
> Regards,
> Kirk
Exactly. But this is not the same as a Xmx range. Lets assume that the 
minimum requirements for the given (desktop) application are 1g and 2g 
are recommended. Specifying -Xms1g -Xmx2g may cause trouble when the OS 
can not guarantee 2g mem for the VM. A range could tell the VM launcher 
to retry with a lower value.

best regards,


More information about the hotspot-gc-dev mailing list