This presentation is based on my article : http://jyops.blogspot.in/2012/09/java-memory-model-simplified.html. We will have an inside look at the working of JVM Garbage Collection with a demo.
3. Agenda
Overview of memory allocations in JVM
Java Profiling tools and Introduction to VisualVM
Demo: Using VisualGC plug-in inside Java VisualVM
4. Overview of memory allocations in JVM
Stack and Heap memory in Java
Hey Object where do you live?
Objects are created on the heap, and only references
(which in turn are primitives) are passed around on the
stack.
6. Using VisualGC plug-in inside Java
VisualVM
Demo – Java Visual VM and Visual GC
The Memory Tester App – You can get this from here.
GC Lifecycle
Object state transition from Eden to Survivor space – Old
Gen.