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

PDF
What's new in WorkManager-Andri Suranta Ginting (Product Engineer-Gojek)
PDF
ServiceWorker: Exploring the Core of the Progressive Web App-Bagus Aji Santos...
PDF
PuppetConf 2017: Puppet & Google Cloud: From Nothing to Production in 10 minu...
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...
PPTX
Introduction to Serverless and Google Cloud Functions
PPTX
The State of the Developer Ecosystem - .NET Conf Barcelona 2018
PPTX
Reactive Angular 2
What's new in WorkManager-Andri Suranta Ginting (Product Engineer-Gojek)
ServiceWorker: Exploring the Core of the Progressive Web App-Bagus Aji Santos...
PuppetConf 2017: Puppet & Google Cloud: From Nothing to Production in 10 minu...
Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...
Introduction to Serverless and Google Cloud Functions
The State of the Developer Ecosystem - .NET Conf Barcelona 2018
Reactive Angular 2

Similar to Visualising Gargage Collection using Visual VM (20)

PPTX
this-is-garbage-talk-2022.pptx
PPTX
millions-gc-jax-2022.pptx
PDF
JVM Performance Tuning
PPTX
JavaPerformanceChapter_4
PDF
(JVM) Garbage Collection - Brown Bag Session
PDF
[BGOUG] Java GC - Friend or Foe
PPTX
Вячеслав Блинов «Java Garbage Collection: A Performance Impact»
PDF
Advanced Java Features: A Deep Dive into JVM, JIT, and GC
PDF
Principios básicos de Garbage Collector en Java
PDF
IBM Monitoring and Diagnostic Tools - GCMV 2.8
PDF
Taming The JVM
PDF
Introduction of Java GC Tuning and Java Java Mission Control
PPTX
Advanced Java Features: A Deep Dive into JVM, JIT, and GC
PDF
State of Java Elasticity. Tuning Java Efficiency - GIDS.JAVA LIVE 2020
PPTX
Вячеслав Блинов «Java Garbage Collection: A Performance Impact»
PDF
Java Performance Tuning
PDF
DC JUG: Understanding Java Garbage Collection
PDF
Java at Scale, Dallas JUG, October 2013
PPTX
HotSpot JVM Tuning
PDF
Memory Management in the Java HotSpot Virtual Machine
this-is-garbage-talk-2022.pptx
millions-gc-jax-2022.pptx
JVM Performance Tuning
JavaPerformanceChapter_4
(JVM) Garbage Collection - Brown Bag Session
[BGOUG] Java GC - Friend or Foe
Вячеслав Блинов «Java Garbage Collection: A Performance Impact»
Advanced Java Features: A Deep Dive into JVM, JIT, and GC
Principios básicos de Garbage Collector en Java
IBM Monitoring and Diagnostic Tools - GCMV 2.8
Taming The JVM
Introduction of Java GC Tuning and Java Java Mission Control
Advanced Java Features: A Deep Dive into JVM, JIT, and GC
State of Java Elasticity. Tuning Java Efficiency - GIDS.JAVA LIVE 2020
Вячеслав Блинов «Java Garbage Collection: A Performance Impact»
Java Performance Tuning
DC JUG: Understanding Java Garbage Collection
Java at Scale, Dallas JUG, October 2013
HotSpot JVM Tuning
Memory Management in the Java HotSpot Virtual Machine
Ad

More from Luiz Fernando Teston (6)

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

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Approach and Philosophy of On baking technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Modernizing your data center with Dell and AMD
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
KodekX | Application Modernization Development
PDF
Machine learning based COVID-19 study performance prediction
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Network Security Unit 5.pdf for BCA BBA.
20250228 LYD VKU AI Blended-Learning.pptx
Approach and Philosophy of On baking technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Big Data Technologies - Introduction.pptx
Understanding_Digital_Forensics_Presentation.pptx
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Digital-Transformation-Roadmap-for-Companies.pptx
Modernizing your data center with Dell and AMD
Per capita expenditure prediction using model stacking based on satellite ima...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
KodekX | Application Modernization Development
Machine learning based COVID-19 study performance prediction
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Empathic Computing: Creating Shared Understanding
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
NewMind AI Monthly Chronicles - July 2025
Network Security Unit 5.pdf for BCA BBA.

Visualising Gargage Collection using Visual VM