Show sample answer ▾▴
A reporting service had 900ms p99 and intermittent pauses. I profiled it, found frequent full GC pauses from short-lived large allocations plus an N+1 Hibernate problem. I tuned the heap and GC, fixed the query with a fetch join, and added caching. p99 dropped to 180ms even under 3x load. I let profiling data, not intuition, drive the changes.