~/talk

Calibrate Garbage Collection on the Ground and Run Your Java App

Talkat Voxxed Days Cluj 2023 · 2023-10-11..10-12· [java, web-performance]
slides:none on file

Two small Java apps run on JDK 21 — an eager factorial (CPU bound) and a continuous file editor (IO bound) — tested with k6 in Testkube and observed via Prometheus + micrometer and gc.log. Defaults use G1 and yield an average 84.17 ms with P95 near 1s for the CPU app; switching to parallel GC avg 4.8 ms CPU app boosts throughput by thousands of requests. ZGC (generational on JDK21) gives lowest latency for large heaps; halving G1 pause target or tuning XMS/XMX and GC threads also measurably improves results.

AI-written summary · about

  1. 0:00Garbage collection in Java
  2. 3:15Why GC calibration matters
  3. 11:11GC types and generational memory
  4. 12:34G1 GC setup and results
  5. 17:14Fine-tuning G1 GC flags
  6. 22:58Parallel GC performance
  7. 27:18Fine-tuning Parallel GC
  8. 29:06Z GC overview and benefits
  9. 31:15Z GC test results
  10. 34:09Comparison of garbage collectors
  11. 37:39GC tuning trade-offs
  12. 38:02Q&A
~/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.