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: airhacks.io.


Cloudy Jakarta EE and MicroProfile: Microservices, Clouds and Beyond Jakarta EE / MicroProfile airhacks workshops at MUC airport, Winter Edition

airhacks.fm the podcast:

Stay in touch: airhacks.news.

Comments:

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