SlideShare a Scribd company logo
VISUALISING GARBAGE
COLLECTION USING VISUAL VM
LUIZ TESTON, WWW.FRACTA.CC
BEFORE
WE START
MANDATORY ITEMS TO REPRODUCE THE STEPS ON THE GC WORKSHOP
▸ JDK >= 1.5
▸ Visual VM + Visual GC plugin
▸ Jetty (or any other Java application to measure)
▸ Apache Bench “ab” or any other stress application
▸ credentials: cam20jan16 / AJtmN5d3
DISCLAIMER
▸ The objective is to visualise different GC configurations and
how they affect the application execution and the GC
behaviour itself.
▸ The stress tools are here just to help objects being created
and destroyed by the application.
▸ We are not benchmarking jetty.
▸ We are not benchmarking http.
▸ We are not benchmarking at all.
RECIPES TO TRY
RUN YOUR APP
STRESS IT
VISUALISE IT
VM ARGUMENTS TO TRY
▸ -Xmx<size>[m|g]
▸ -Xms<size>[m|g]
▸ -XX:NewSize=<size>[m|g]
▸ -XX:+UseSerialGC
▸ -XX:+UseParallelOldGC
▸ -XX:+UseConcMarkSweepGC
▸ -XX:+UseParallelGC -XX:+UseNUMA
▸ -XX:+UseG1GC
SCREENSHOTS
<no args>
-Xmx2G -Xms2G
-Xmx7G -Xms7G
-Xmx1G -Xms1G -XX:NewSize=800m
-Xmx1G -Xms1G -XX:NewSize=800m -XX:+UseSerialGC
-Xmx1G -Xms1G -XX:UseParallelOldGC
-Xmx1G -Xms1G -XX:+UseConcMarkSweepGC
-Xmx1G -Xms1G -XX:+UseParallelGC -XX:+UseNUMA
-Xmx1G -Xms1G -XX:+UseG1GC
QUESTIONS? THANKS FOR YOUR TIME!
▸ http://docs.oracle.com/javase/8/docs/technotes/guides/
vm/gctuning/index.html
▸ mechanical-sympathy.blogspot.com/2013/07/java-
garbage-collection-distilled.html
▸ https://visualvm.java.net
▸ fotos: Dani Teston

More Related Content

Similar to Visualising Gargage Collection using Visual VM (20)

PPTX
this-is-garbage-talk-2022.pptx
Tier1 app
 
PPTX
millions-gc-jax-2022.pptx
Tier1 app
 
PDF
JVM Performance Tuning
Jeremy Leisy
 
PPTX
JavaPerformanceChapter_4
Saurav Basu
 
PDF
(JVM) Garbage Collection - Brown Bag Session
Jens Hadlich
 
PDF
[BGOUG] Java GC - Friend or Foe
SAP HANA Cloud Platform
 
PPTX
Вячеслав Блинов «Java Garbage Collection: A Performance Impact»
Anna Shymchenko
 
PDF
Advanced Java Features: A Deep Dive into JVM, JIT, and GC
Naresh IT
 
PDF
Principios básicos de Garbage Collector en Java
Víctor Leonel Orozco López
 
PDF
IBM Monitoring and Diagnostic Tools - GCMV 2.8
Chris Bailey
 
PDF
Taming The JVM
Matthew McCullough
 
PDF
Introduction of Java GC Tuning and Java Java Mission Control
Leon Chen
 
PPTX
Advanced Java Features: A Deep Dive into JVM, JIT, and GC
Naresh IT
 
PDF
State of Java Elasticity. Tuning Java Efficiency - GIDS.JAVA LIVE 2020
Jelastic Multi-Cloud PaaS
 
PPTX
Вячеслав Блинов «Java Garbage Collection: A Performance Impact»
Anna Shymchenko
 
PDF
Java Performance Tuning
Ender Aydin Orak
 
PDF
DC JUG: Understanding Java Garbage Collection
Azul Systems, Inc.
 
PDF
Java at Scale, Dallas JUG, October 2013
Azul Systems Inc.
 
PPTX
HotSpot JVM Tuning
Gilad Garon
 
PDF
Memory Management in the Java HotSpot Virtual Machine
white paper
 
this-is-garbage-talk-2022.pptx
Tier1 app
 
millions-gc-jax-2022.pptx
Tier1 app
 
JVM Performance Tuning
Jeremy Leisy
 
JavaPerformanceChapter_4
Saurav Basu
 
(JVM) Garbage Collection - Brown Bag Session
Jens Hadlich
 
[BGOUG] Java GC - Friend or Foe
SAP HANA Cloud Platform
 
Вячеслав Блинов «Java Garbage Collection: A Performance Impact»
Anna Shymchenko
 
Advanced Java Features: A Deep Dive into JVM, JIT, and GC
Naresh IT
 
Principios básicos de Garbage Collector en Java
Víctor Leonel Orozco López
 
IBM Monitoring and Diagnostic Tools - GCMV 2.8
Chris Bailey
 
Taming The JVM
Matthew McCullough
 
Introduction of Java GC Tuning and Java Java Mission Control
Leon Chen
 
Advanced Java Features: A Deep Dive into JVM, JIT, and GC
Naresh IT
 
State of Java Elasticity. Tuning Java Efficiency - GIDS.JAVA LIVE 2020
Jelastic Multi-Cloud PaaS
 
Вячеслав Блинов «Java Garbage Collection: A Performance Impact»
Anna Shymchenko
 
Java Performance Tuning
Ender Aydin Orak
 
DC JUG: Understanding Java Garbage Collection
Azul Systems, Inc.
 
Java at Scale, Dallas JUG, October 2013
Azul Systems Inc.
 
HotSpot JVM Tuning
Gilad Garon
 
Memory Management in the Java HotSpot Virtual Machine
white paper
 

More from Luiz Fernando Teston (6)

PDF
2021 10-06 jax-london-making legacy systems fast and reliable
Luiz Fernando Teston
 
PDF
Threads and Java Memory Model Explained
Luiz Fernando Teston
 
PDF
Jvm internals 2015 - CorkJUG
Luiz Fernando Teston
 
PDF
Lib gdx 2015_corkdevio
Luiz Fernando Teston
 
PDF
JVM Internals (2015)
Luiz Fernando Teston
 
PDF
Jvm internals
Luiz Fernando Teston
 
2021 10-06 jax-london-making legacy systems fast and reliable
Luiz Fernando Teston
 
Threads and Java Memory Model Explained
Luiz Fernando Teston
 
Jvm internals 2015 - CorkJUG
Luiz Fernando Teston
 
Lib gdx 2015_corkdevio
Luiz Fernando Teston
 
JVM Internals (2015)
Luiz Fernando Teston
 
Jvm internals
Luiz Fernando Teston
 
Ad

Recently uploaded (20)

PDF
Introducing and Operating FME Flow for Kubernetes in a Large Enterprise: Expe...
Safe Software
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 
PDF
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
PDF
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
PDF
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
PPTX
Practical Applications of AI in Local Government
OnBoard
 
PDF
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PPTX
2025 HackRedCon Cyber Career Paths.pptx Scott Stanton
Scott Stanton
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
PDF
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
PDF
Governing Geospatial Data at Scale: Optimizing ArcGIS Online with FME in Envi...
Safe Software
 
PDF
Kubernetes - Architecture & Components.pdf
geethak285
 
PDF
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
Introducing and Operating FME Flow for Kubernetes in a Large Enterprise: Expe...
Safe Software
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
Practical Applications of AI in Local Government
OnBoard
 
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
2025 HackRedCon Cyber Career Paths.pptx Scott Stanton
Scott Stanton
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
Governing Geospatial Data at Scale: Optimizing ArcGIS Online with FME in Envi...
Safe Software
 
Kubernetes - Architecture & Components.pdf
geethak285
 
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
Ad

Visualising Gargage Collection using Visual VM