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

More from Manu Pk (7)

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

Recently uploaded (20)

PPTX
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
PDF
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PDF
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
PDF
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
PPTX
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
PDF
Kubernetes - Architecture & Components.pdf
geethak285
 
PPTX
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
PDF
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 
PDF
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
PDF
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
PDF
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
PDF
Why aren't you using FME Flow's CPU Time?
Safe Software
 
PDF
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 
PDF
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
PDF
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
PDF
Next level data operations using Power Automate magic
Andries den Haan
 
PDF
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
Kubernetes - Architecture & Components.pdf
geethak285
 
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
Why aren't you using FME Flow's CPU Time?
Safe Software
 
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
Next level data operations using Power Automate magic
Andries den Haan
 
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 

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