~/talk

Java Garbage Collectors’ Current Performance Impact

Talkat Oracle Code One 2018 · 2018-10-22..10-25· [java]
links:none on file
slides:none on file

G1 is the Java default, CMS is deprecated and ZGC is the new low‑pause collector coming up; practical measurements use JMH and native memory tracking. A JMH test on a 100k-int set shows an epsilon/no‑GC baseline of ~145 ops/s, while forcing collections lets parallel GC give ~5× throughput and ~2.5× fewer cache misses by compacting hot objects. Microbenchmarks reveal write barriers (shuffle test) cut performance to about one third versus epsilon and CMS degrades on large heaps (4–64 GB) due to compressed‑oops and fragmentation.

AI-written summary · about

  1. 0:00Introduction
  2. 0:47Key Question
  3. 2:44Garbage Collector
  4. 4:49Targeting of Collectors
  5. 5:34Parallel Garbage Collectors
  6. 7:40Memory
  7. 10:00Native Memory
  8. 11:58General Thoughts
  9. 12:32Gmage Benchmark
  10. 17:00Parallel GC Results
  11. 20:32Write Barriers
  12. 24:36Read Barriers
  13. 24:58Reference Comparison Operations
  14. 31:57Garbage Collector Pause
  15. 32:22Safe Points
  16. 33:01Example
  17. 40:16Demo
~/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.