Method for finding memory leak in large Java heap dumps

后端 未结 8 788
隐瞒了意图╮
隐瞒了意图╮ 2020-12-22 19:05

I have to find a memory leak in a Java application. I have some experience with this but would like advice on a methodology/strategy for this. Any reference and advice is we

8条回答
  •  轮回少年
    2020-12-22 19:30

    There are great tools like Eclipse MAT and Heap Hero to analyze heap dumps. However, you need to provide these tools with heap dumps captured in the correct format and correct point in time.

    This article gives you multiple options to capture heap dumps. However, in my opinion, first 3 are effective options to use and others are good options to be aware. 1. jmap 2. HeapDumpOnOutOfMemoryError 3. jcmd 4. JVisualVM 5. JMX 6. Programmatic Approach 7. IBM Administrative Console

    7 Options to capture Java Heap dumps

提交回复
热议问题