SlideShare a Scribd company logo
JVM Garbage Collection Explained
Manu PK
@manupk12
http://www.jyops.blogspot.in/
Eclipse Day India 2013 - Sept 27, 2013
About Me
Agenda
 Overview of memory allocations in JVM
 Java Profiling tools and Introduction to VisualVM
 Demo: Using VisualGC plug-in inside Java VisualVM
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.
Java Profiling tools and Introduction to
VisualVM
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.
Demo Explained: GC Indicators
 Garbage Collection Concepts
Questions / Comments /
Feedback
@manupk12| manu.pk@outlook.com
Slides @
http://www.slideshare.net/pkmanu
References
 Java Memory Profiling Simplified
 JVM Memory Structure
 VisualVM performance tuning tool
 Understanding Java Garbage Collection
 Java Garbage Collection Basics
 Java theory and practice: A brief history of garbage
collection
 Memory Management in the Java HotSpot™ Virtual
Machine
Thank You
for Listening

More Related Content

ODP
Effective java - Creating and Destroying Objects
ODP
PPTX
Do you need microservices architecture?
PDF
Java Performance & Profiling
PPT
Palestra sobre Carreira Java / JavaEE - TDC2012 - Trlha Java
PPT
20. Object-Oriented Programming Fundamental Principles
PDF
Clojure
KEY
Everything I Ever Learned About JVM Performance Tuning @Twitter
Effective java - Creating and Destroying Objects
Do you need microservices architecture?
Java Performance & Profiling
Palestra sobre Carreira Java / JavaEE - TDC2012 - Trlha Java
20. Object-Oriented Programming Fundamental Principles
Clojure
Everything I Ever Learned About JVM Performance Tuning @Twitter

More from Manu Pk (7)

PDF
Software Architecture and Design in the Age of Code Assist tools.pdf
PDF
When to stay with modular monoliths over microservices
PDF
Practical communication strategies for software architects
PDF
Introduction to Microservices
PDF
The story of SonarQube told to a DevOps Engineer
PDF
How can agile help you in clearing the technical debt
PPTX
Doing more as a Programmer
Software Architecture and Design in the Age of Code Assist tools.pdf
When to stay with modular monoliths over microservices
Practical communication strategies for software architects
Introduction to Microservices
The story of SonarQube told to a DevOps Engineer
How can agile help you in clearing the technical debt
Doing more as a Programmer

Recently uploaded (20)

PDF
Chapter 2 Digital Image Fundamentals.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PPT
Teaching material agriculture food technology
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
PDF
KodekX | Application Modernization Development
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Big Data Technologies - Introduction.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Chapter 2 Digital Image Fundamentals.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Chapter 3 Spatial Domain Image Processing.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Review of recent advances in non-invasive hemoglobin estimation
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Teaching material agriculture food technology
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Spectral efficient network and resource selection model in 5G networks
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
KodekX | Application Modernization Development
Diabetes mellitus diagnosis method based random forest with bat algorithm
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
Advanced Soft Computing BINUS July 2025.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Big Data Technologies - Introduction.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows

JVM Garbage Collection Explained

  • 1. JVM Garbage Collection Explained Manu PK @manupk12 http://www.jyops.blogspot.in/ Eclipse Day India 2013 - Sept 27, 2013
  • 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.
  • 5. Java Profiling tools and Introduction to VisualVM
  • 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.
  • 7. Demo Explained: GC Indicators  Garbage Collection Concepts
  • 8. Questions / Comments / Feedback @manupk12| [email protected] Slides @ http://www.slideshare.net/pkmanu
  • 9. References  Java Memory Profiling Simplified  JVM Memory Structure  VisualVM performance tuning tool  Understanding Java Garbage Collection  Java Garbage Collection Basics  Java theory and practice: A brief history of garbage collection  Memory Management in the Java HotSpot™ Virtual Machine