~/talk

Memory Efficient Java

Talkat GOTOpia Europe 2020 · 2020-09-15..09-18· [java]
slides:none on file

Claims that roughly 60% of Java apps are memory-inefficient, shows concrete diagnostics and fixes: uses GC logs and profilers (VisualVM, Flight Recorder) to find hot allocation sites, measures allocation rate (examples: 6.5 GB/s and 4 GB/s cases), explains TLABs and escape analysis, and rewrites hot loops to eliminate frequent array/object allocations. Results are dramatic: reducing allocation from 1.8 GB/s gives throughput jump from 400k TPS to 25M TPS, a websocket case halves churn and boosts throughput, and a loop fix yields ~2x runtime improvement.

AI-written summary · about

  1. 0:00Intro
  2. 2:12Demo
  3. 4:15What is your performance trouble spot?
  4. 11:57War stories
  5. 13:19Allocation site
  6. 16:39Java heap
  7. 20:12Problems
  8. 22:22Pause vs. occupancy
  9. 23:56Reducing allocations
  10. 25:21Demo
~/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.