NewSize and SurvivorRatio needed with UseAdaptiveSizePolicy ?
Jon Masamitsu
jon.masamitsu at oracle.com
Thu Apr 24 21:31:01 UTC 2014
On 4/23/14 11:17 PM, Sharma, Vipin K wrote:
>
> Hi All
>
> I am working on an old java application and few days back we observed
> application crashed due to memory issue.
>
> Below are the parameters we are using
>
> -Xms32m -Xmx2048m -Xss1m -XX:+UseParallelGC -XX:NewRatio=2
> -XX:NewSize=8m -XX:MaxNewSize=64m -XX:SurvivorRatio=25
> -XX:+UseAdaptiveSizePolicy
>
> Looking at these parameters few questions comes in mind and Looking
> for expert advice
>
> 1.When we are using UseAdaptiveSizePolicy option , what is use of
> NewSize , MaxNewSize , NewRatio , SurvivorRatio. Shall I remove these ?
>
> 2.Using above options are we overriding values set by
> UseAdaptiveSizePolicy ?
>
UseAdaptiveSizePolicy affects how the heap grows and shrinks.
UseAdaptiveSizePolicy grows and shrinks the heap within whatever
size it is given for the heap. There are default sizes but if you
have preferred sizes, continue to use them.
Jon
> Thanks,
>
> *Vipin Sharma*
>
>
>
> _______________________________________________
> hotspot-gc-use mailing list
> hotspot-gc-use at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20140424/deff4df0/attachment.html>
More information about the hotspot-gc-use
mailing list