I tested my webapp locally on my computer and controlled it using VisualVM. Recently, I also started using JMeter, as it was suggested to perform some load tests, as I suspected that I had a slow memory leak somewhere.
Today, my webapp finally OutOfMemory exception. I had the HeapDumpOnOutOfMemoryError and HeapDumpPath parameters if this happened. Heap dump file created.
I opened this file (java_pid2760.hprof) in VisualVM, and frankly, I donβt understand how I should be able to identify the culprit of this memory leak ...
How do you use VisualVM to analyze the heap dump and find the class / instance that generates the memory leak?
source share