When a Java application slows down or runs out of memory, understanding what happens inside the JVM can turn guesswork into diagnosis. Java Memory Management builds that understanding step by step, from the stack, heap, and Metaspace to garbage collection, JVM monitoring, tuning, and memory leaks.
Start with how Java stores data
The opening chapters explain computer memory in relation to Java, then distinguish primitives, references, and objects. You’ll follow how variables and objects are stored and how references connect them—useful groundwork for understanding what the garbage collector can reclaim and why object-reference behavior matters.
Follow the heap and garbage collector
The book explores heap generations and the spaces used during memory management before examining the garbage-collection process. Its coverage includes marking, sweeping, compacting, copying, and a range of collector implementations, including Serial, Parallel, CMS, G1, and Z GC.
Bring JVM monitoring and tuning into focus
Later chapters turn to JVM memory metrics, profiling, and configuration. The contents include tools such as jstat, jmap, and VisualVM, alongside discussion of heap and thread-stack sizing, Metaspace, and garbage-collection tuning. This links the underlying concepts with the practical work of investigating how an application uses memory.
Recognize and prevent memory leaks
The final chapter addresses memory leaks: how to understand them, spot them through heap footprint and garbage-collector activity, and avoid common pitfalls. Together, these topics give readers a structured way to approach memory-related performance problems.
For Java practitioners who want to look under the hood
With its progression from core concepts to profiling and troubleshooting, this book is relevant to Java developers and other professionals who work with Java applications and want a clearer grasp of JVM memory behavior.
User Reviews
Only logged in customers who have purchased this product may leave a review.
Python Illustrated
Sold by Maaike van Putten
Original price was: $9.99.$5.00Current price is: $5.00.

There are no reviews yet.