O'Reilly logo

Mastering Java 11 - Second Edition by Dr. Edward Lavieri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Garbage collection options

Here is a list of JVM sizing options:

Sizing description JVM option flag
This flag establishes the initial heap size (combined young and tenured space). XX:InitialHeapSize=3g
This flag establishes the maximum heap size (combined young and tenured space). -XX:MaxHeapSize=3g
This flag establishes the initial and maximum heap size (combined young and tenured space). -Xms2048m -Xmx3g
This flag establishes the initial size of young space. -XX:NewSize=128m
This flag establishes the maximum size of young space. -XX:MaxNewSize=128m
This flag establishes young space size. It uses a ration of young versus tenured space. In the sample flag to the right, 3 means that young space will be three times smaller than ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required