Book Image

WildFly: New Features

By : Filippe C Spolti
Book Image

WildFly: New Features

By: Filippe C Spolti

Overview of this book

Table of Contents (13 chapters)
WildFly: New Features
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Learning about the JVM memory – Oracle JDK


The highest level divisions of the JVM memory are the most well known areas, such as heap and non heap. The heap area is used to store the objects instantiated from the classes, which means when an object is created from the constructor of the class it is allocated in heap memory. Let us understand what each area of memory is and why the JVM is divided into two parts—heap and non heap.

Heap memory

The heap memory is subdivided into three areas as follows:

  • The Eden generation: This area is also known as the new generation. It is the area of memory used to, as its name already states, create new objects, except very ones. This area is constantly swept by a type of GC, the GC minor, which eliminates the short-lived objects that are the majority of the objects created. To scale this particular area of the heap memory, it is necessary to use the -XX:NewSize and -XX:MaxNewSize parameters.

  • The survival generation: This is the area of memory used by the GC...