~/talk

A Guide to OpenJDK HotSpot Garbage Collection

Talkat JAX London 2016 · 2016-10-10..10-13· [java]
slides:none on file

OpenJDK HotSpot uses generational heaps: fast allocation via thread-local allocation buffers and young collections that always copy the entire young area; pause time is dominated by copying cost while GC overhead follows allocation and promotion rates. Parallel Old (throughput) does full mark-sweep-compact, CMS does concurrent marking with no compaction and falls back to single-threaded serial GC on failures, and G1 adds concurrent marking plus mixed collections (partial/incremental compaction). Use GC logs, heap dumps, jvisualvm/JMC and plotting to spot leaks (example: app using ~48GB with <24GB heap → JNI leak) and size generations to allocation/promotion rates.

AI-written summary · about

  1. 0:00Introduction to HotSpot GC
  2. 1:29Performance engineering basics
  3. 5:24JVM components overview
  4. 7:11Throughput vs latency design
  5. 11:46Generational GC explained
  6. 12:29Allocation with TLABs
  7. 13:56Young generation reclamation
  8. 15:19Old generation algorithms
  9. 18:34CMS no compaction details
  10. 20:27Serial GC fallback
  11. 20:47Memory leaks and GC limits
  12. 21:52Root set and leak causes
  13. 22:33Tools for leak detection
  14. 25:03Tuning for throughput and latency
  15. 28:11Traditional Java Heap
  16. 28:33G1 GC regionalized Heap
  17. 30:38G1 GC concurrent marking
  18. 33:07G1 mixed collections
  19. 34:35Summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.