Memory Leaks and JVM Troubleshooting in Java
Java can still leak: any object the program keeps reachable but no longer needs. Here is how to find and fix them.
The Java virtual machine and memory.
6 notes tagged
Java can still leak: any object the program keeps reachable but no longer needs. Here is how to find and fix them.
The collector reclaims objects that can no longer be reached. Understanding reachability explains both leaks and pauses.
Where each piece of data actually lives, and what runs out when each area is exhausted.
Classes are found, verified, prepared and initialised on first use, by a hierarchy of loaders that delegate upwards.
The class loader, the runtime data areas and the execution engine, and how a class file becomes running machine code.
From new to unreachable: how objects are created, how long they live, and what actually happens when nothing references them any more.