spring-boot-demo-oom: five real memory-leak demos with captured OOM + MAT evidence

This commit is contained in:
2026-10-01 12:11:56 +00:00
commit fd035a79e8
41 changed files with 1317 additions and 0 deletions
@@ -0,0 +1,10 @@
$ java -Xmx160m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=docs/output/heap.hprof -jar target/static-cache-leak.jar
static-cache-leak: entries=1400 approxRetainedMB=87
static-cache-leak: entries=1600 approxRetainedMB=100
static-cache-leak: entries=1800 approxRetainedMB=112
static-cache-leak: entries=2000 approxRetainedMB=125
static-cache-leak: entries=2200 approxRetainedMB=137
java.lang.OutOfMemoryError: Java heap space
Dumping heap to docs/output/heap.hprof ...
Heap dump file created [166360462 bytes in 0.172 secs]