Memory Efficient Java
summary
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
chapters (10)
- 0:00Intro
- 2:12Demo
- 4:15What is your performance trouble spot?
- 11:57War stories
- 13:19Allocation site
- 16:39Java heap
- 20:12Problems
- 22:22Pause vs. occupancy
- 23:56Reducing allocations
- 25:21Demo








