Spring Boot #6 — Looking Into JVM Memory and GC, and a Connection Pool Bottleneck Experiment
I watched the heap with jps and jstat, and printed out GC logs. From the heap structure split into Young/Old, to the contrast with C's manual memory management, to reproducing a bottleneck where reducing the DB connection pool to 1 turned a 2-second task into a 6-second one.