~/talk

Trash Talk - Exploring the Memory Management in the JVM

Talkat JCON EUROPE 2024 · 2024-05-13..05-16· [java]
slides:none on file

Fast, clear rundown of how JVM collectors actually work: Mark‑sweep fragments, Mark‑compact trades free space for compaction time, copy collectors need 2x memory, and generational GCs move young survivors to old after repeated copies (Eden/Survivor/to-space). Practical rules: JVM auto‑selects Serial on single CPU or <1.8 GB heap; G1 is default since JDK8 with region sizes (1 MB regions under 4 GB, 4 MB at 8 GB); Epsilon is a non‑GC for deterministic tests. Explains barriers, card table remembered sets, Brooks pointers, ZGC/Shenandoah design, C4/Zing differences, and notes Netflix sees ~3% throughput drop for much lower pause times.

AI-written summary · about

  1. 0:00Introduction and memory model
  2. 2:16Heap objects and reachability
  3. 4:50Garbage collection principles
  4. 6:02Mark and sweep collectors
  5. 8:15Compacting collectors
  6. 9:39Copying collectors
  7. 11:30Generational garbage collection
  8. 14:33Card tables and roots
  9. 16:20Concurrent marking and barriers
  10. 20:11Concurrent copying
  11. 22:35Serial and parallel collectors
  12. 24:19CMS collector overview
  13. 27:22G1 garbage collector
  14. 30:53Epsilon garbage collector
  15. 32:18Shenandoah garbage collector
  16. 34:08ZGC and C4 collectors
  17. 36:30Advanced concurrent techniques
  18. 41:40Choosing the right collector
~/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.