~/talk

Garbage Collector: How to Tame the Beast and Make It Your Best Ally

TalkinFrenchat Devoxx France 2023 · 2023-04-12..04-14· [java]
links:none on file
slides:none on file

Compares OpenJDK garbage collectors (Serial, Parallel, G1, Shenandoah, ZGC) and Azul C4 by replaying a Michel control-based workload with JFR traces and measuring runtime and request latencies. Finds Serial spends ~15% of time in GC with ~244M GC events; Parallel gives the best throughput (about 97% application time) and a small young-generation size tweak saves ~4s. G1 suffers humongous-object fragmentation unless region size is increased (8→16 MB cuts runtime to ~105s), while ZGC and Shenandoah reduce p99 latency and Azul C4 yields the lowest tail latencies.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Serial GC: how it works and use cases
  3. 5:16Parallel GC: parallelism and optimizations
  4. 9:06G1 GC: regions and garbage first
  5. 13:47Shenandoah GC: concurrent and compact
  6. 16:14ZGC: ultra-low latency
  7. 18:20Choosing GC for your app
  8. 26:28Tuning Parallel GC
  9. 29:00Handling humongous objects in G1
  10. 32:34Dynamic G1 tuning
  11. 35:24Shenandoah and ZGC: advanced optimizations
  12. 38:13When to avoid G1 and alternatives
  13. 41:26Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.