From the eBook - 1st edition.
Chapter 1: Different Parts of the Java Memory
Understanding computer memory and Java memory
Accessing the main memory
Overview of the main memory
Memory management and the JVM
Memory management before Java
Understanding the JVM's components for memory management
Creating variables in Java
Primitives and reference types
Storing variables on the stack
Current frame and current method
Primitives and wrapper classes
Storing objects on the heap
Chapter 2: Primitives and Objects in Java Memory
Understanding primitives on the stack and heap
Storing objects on the heap
Understanding the differences between references and objects
Managing object references and security
Inspecting the escaping references issue
Chapter 3: Zooming in on the Heap Space
Exploring the different generations on the heap
Learning how the spaces are used
Understanding the minor garbage collection algorithm
Demonstrating the minor garbage collection algorithm in action
Chapter 4: Freeing Memory with Garbage Collection
Marking by the garbage collector
Reference counting and islands of isolation
Sweeping by the garbage collector
Exploring GC implementations
Chapter 5: Zooming in on the Metaspace
JVM usage of the Metaspace
Releasing Metaspace memory
Metaspace runs out of memory
Metaspace size exceeds a JVM-set threshold
Garbage collection of the Metaspace
Chapter 6: Configuring and Monitoring the Memory Management of the JVM
The basics of JVM tuning for memory management
Obtaining relevant metrics for memory management
Profiling Java applications
Profiling with jstat and jmap
Tuning the configurations of the JVM
Tuning the heap size and thread stack size
Garbage collection tuning
Chapter 7: Avoiding Memory Leaks
Understanding memory leaks
Garbage collector activity
Common pitfalls and how to avoid them
Other Books You May Enjoy