spring-boot-demo-oom: five real memory-leak demos with captured OOM + MAT evidence
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
Eclipse MAT 1.17.0 batch report (org.eclipse.mat.api:suspects) on heap.hprof -- Problem Suspect 1
|
||||
================================================================================================
|
||||
|
||||
Problem Suspect 1 The class com.ankurm.oomdemo.StaticCacheLeakApplication , loaded by
|
||||
org.springframework.boot.loader.launch.LaunchedClassLoader @ 0xf6067460 , occupies 150,878,464
|
||||
(96.17%) bytes. The top consumers of its minimum retained heap are byte[] (4,607 instances
|
||||
totaling 150,730,920), java.util.concurrent.ConcurrentHashMap$Node (2,298 instances totaling
|
||||
73,536), and java.lang.String (2,309 instances totaling 55,416). The memory is accumulated in
|
||||
one instance of java.util.concurrent.ConcurrentHashMap$Node[] , loaded by <system class loader>
|
||||
, which occupies 150,875,504 (96.17%) bytes. Thread java.lang.Thread @ 0xf60af750 main has a
|
||||
local variable or reference to class com.ankurm.oomdemo.StaticCacheLeakApplication @ 0xf6000000
|
||||
which is on the shortest path to java.util.concurrent.ConcurrentHashMap$Node[4096] @ 0xfba808c8
|
||||
. The thread java.lang.Thread @ 0xf60af750 main keeps local variables with total size 109,016
|
||||
(0.07%) bytes. The top consumers of its minimum retained heap are byte[] (4,607 instances
|
||||
totaling 150,730,920), java.util.concurrent.ConcurrentHashMap$Node (2,298 instances totaling
|
||||
73,536), and java.lang.String (2,309 instances totaling 55,416). Significant stack frames and
|
||||
local variables org.springframework.boot.SpringApplication.run(Ljava/lang/Class;[Ljava/lang/Stri
|
||||
ng;)Lorg/springframework/context/ConfigurableApplicationContext; (SpringApplication.java:1354)
|
||||
class com.ankurm.oomdemo.StaticCacheLeakApplication @ 0xf6000000 retains 150,878,464 (96.17%)
|
||||
bytes org.springframework.boot.loader.launch.Launcher.launch(Ljava/lang/ClassLoader;Ljava/lang/S
|
||||
tring;[Ljava/lang/String;)V (Launcher.java:106) class
|
||||
com.ankurm.oomdemo.StaticCacheLeakApplication @ 0xf6000000 retains 150,878,464 (96.17%) bytes
|
||||
The stacktrace of this Thread is available. See stacktrace . See stacktrace with involved local
|
||||
variables .
|
||||
Reference in New Issue
Block a user