~/talk

GC Tuning & Troubleshooting Crash Course

Talkat JAX London 2019 · 2019-10-07..10-10· [java, web-performance]
links:none on file
slides:none on file

Three concrete KPIs: latency, throughput, footprint guide tuning; GC logs (uploadable to GCeasy and similar tools) produce those metrics and root causes. Java has 12+ collectors and 600+ JVM flags, but basics suffice. Disabling explicit GC (or removing noisy JVM flags) cuts long pauses—examples show max pauses dropping from ~20–23s to ~660ms and averages near ~89ms. Memory audits find huge waste (one travel app wastes 52% of heap; 47,423 duplicate "USD" strings; many empty HashMaps). ZGC on Java 11 gives millisecond pauses.

AI-written summary · about

  1. 0:00Introduction
  2. 1:45What is Garbage
  3. 2:44Garbage Collectors
  4. 3:46JVM Arguments
  5. 4:31Overwhelming
  6. 5:38Fundamentals
  7. 6:11Performance Indicators
  8. 12:52GC Log Files
  9. 14:08Configuring XMX
  10. 14:46XMX Limits
  11. 18:06KPIs
  12. 18:18Sample GC Log
  13. 24:38GC Log Formats
  14. 25:09IBM GC Log
  15. 27:24GC Log Analysis Report
  16. 29:28Start from the scratch
  17. 30:00Remove all arguments
  18. 31:18KPI
  19. 31:59GC Causes
  20. 33:31Recommendation
  21. 33:47System Dot GC
  22. 36:10Remove Explicit GC
  23. 37:06Creation Rate
  24. 38:23Memory Waste
  25. 38:43EEP Zero
  26. 40:09Inefficient Collections
  27. 41:29Typical Code
  28. 41:45Adding Only One Element
  29. 42:28Adding ArrayList
  30. 44:59Recommendations
  31. 45:28Lazy initialization
  32. 45:42Clear
  33. 45:54Null
  34. 46:30Garbage Collection Algorithm
  35. 47:35Sage Graph
  36. 47:58Possible Memory Leak
  37. 49:09Micro Matrix
  38. 49:26Out of Memory Error
  39. 50:46Garbage
~/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.