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.


NEW MUC Airport Workshop: Migrating Java Client (Swing / Java FX) to Web Standards

Airport MUC workshops: Web (SPA, PWAs, Offline, Desktop, Mobile) Applications Essentials and Effective Web Applications. No migrations. #usetheplatform

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

Comments:

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