How to pin point a memory leak in a heap dump using jhat/jvisualvm tool?
I have a heap dump of our application generated using jmap during an "OutOfMemoryError:Java Heap Space error". I used jhat to analyse the dump but the info is too huge and I could not find where the memory leak occurred.Please help me in pin-pointing the objects that caused memory leaks.
Visual VM will show you that the perm gen is filled, which means OOM error.
When you get that heap dump , you'll be able to see the object with the most instances. That should give you a clue as to the culprit.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.