Tune Garbage Collection in the JVM

After reviewing Garbage Collection diagnostic metrics, you can use these JVM arguments to tune space allocation in the JVM Garbage Collection memory pool. For example, you might want to increase the size of tenured space if your application needs to store many objects long term.

JVM Arguments Meaning
-Xms

The amount of total memory allocated to young and old generation space.

-XX:NewSize

The amount of memory allocated to the young generation space.

-XX:PermSize

The amount of memory allocated to the permanent generation