Save the Last Gigabyte of RAM
summary
A case study of reducing memory usage on a Java/Spring/PostgreSQL production system with 96 GB RAM where adding more memory was not an option. It explains using profiling and diagnostic tools—Java Flight Recorder, Eclipse Memory Analyzer, PostgreSQL pg_stat_statements and hypersistence-utils—to find multiple RAM-hungry components and the concrete changes made to lower their memory footprint within a three-week time window.
AI-written summary · about
chapters (7)
- 0:00Java memory management
- 1:51Project context
- 6:45Week 1: Memory leak
- 14:49Week 2: SQL and streaming
- 27:31Week 3: Fixing allocations
- 32:47Optimization results
- 40:28Conclusion








