How To Find Default Configuration (e.g. -Xmx, -Xms) Settings (ergonomics) for JVM?

JVM comes with "ergonomics" feature which tries to find the best possible JVM configuration for the execution environment.

The configuration choices suggested by JVM can be printed with:

java -XX:+PrintFlagsFinal

A fraction of the output for Java 8:

uintx MaxHeapSize                              := 4294967296                          {product}   
uintx InitialHeapSize                          := 268435456                           {product}
bool UseG1GC                                   = false                               {product}
See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting. Is Munich's airport too far? Learn from home:

NEW workshops: MicroProfile with Quarkus and Micro Frontends with Web Components at MUC airport the podcast:

Stay in touch:


Post a Comment:
  • HTML Syntax: NOT allowed
Online Workshops
...the last 150 posts
...the last 10 comments