Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to assign more memory to young gen with NewRatio JVM option

How to assign more memory to young gen with NewRatio JVM option? Since NewRatio defines ratio of old to young gen, if I set this parameter as 1:3 it says invalid value. I want to assign thrice memory to young gen. How can I do with NewRatio?

like image 721
Jess Avatar asked Dec 02 '25 20:12

Jess


1 Answers

The NewRatio has to be a whole number. If you want a higher new to old ratio you need to to set it explicitly. e.g. I have used settings like

-Xmn24g -Xmx26g
like image 57
Peter Lawrey Avatar answered Dec 05 '25 08:12

Peter Lawrey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!