Book Image

WildFly Performance Tuning

Book Image

WildFly Performance Tuning

Overview of this book

Table of Contents (17 chapters)
WildFly Performance Tuning
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


The JVM is the engine for all Java-based applications. It has evolved tremendously over the years, enabling Java applications to execute faster and to be more memory-efficient. The JVM is good at setting its own default values using ergonomics based on the environment but often needs tuning as, for example, memory runs short or the JVM runs slow.

Memory areas for holding objects are the heap with its subareas, young generation—with Eden and the Survivor spaces S0 and S1—and old (tenured) generation. The size of these areas can be tuned individually and sometimes relative to each other, all to ensure that the best possible configuration for a specific application can be met.

The PermGen memory area is part of the heap but separately holds metadata and isn't involved in object allocation or collection. As with the rest of the memory areas, PermGen can be sized individually.

GC moves aging objects within the heap and removes any unused ones, thus freeing memory. Depending on specific application...