O'Reilly logo

WildFly Performance Tuning by Anders Welén, Arnold Johansson

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

VM parameters in production

The following VM parameters should always be set in your production environment to log relevant information. Even if they come with a small price in terms of performance costs (mostly disk I/O), if they are not set, you have quite a challenge ahead of you to resolve any VM-related problems (memory, GC, and so on) in your applications.

verbose:gc

To retrieve basic memory details after each collection, add the following parameter:

-verbose:gc

The logged output looks like the following for a minor and major GC, respectively:

[GC 85310K->39093K(173056K), 0.0123160 secs]
[Full GC 39093K->25698K(173056K), 0.1902890 secs]

First, on each line, GC means that a minor GC is executed, whereas Full GC naturally means that a full or ...

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