How can I analyze a heap dump in IntelliJ? (memory leak)

前端 未结 7 926
忘了有多久
忘了有多久 2021-01-31 01:43

I have generated a heap dump from my java application which has been running for some days with the jmap tool -> this results in a large binary heap dump file.

相关标签:
7条回答
  • 2021-01-31 01:55

    VisualVM plugin for Intellij Idea

    0 讨论(0)
  • 2021-01-31 02:06

    The best thing out there is Memory Analyzer (MAT), IntelliJ does not have any bundled heap dump analyzer.

    0 讨论(0)
  • 2021-01-31 02:09

    You can just run "Java VisualVM" which is located at jdk/bin/jvisualvm.exe

    This will open a GUI, use the "File" menu -> "Load..." then choose your *.hprof file

    That's it, you're done!

    0 讨论(0)
  • 2021-01-31 02:13

    There also exists a 'JVM Debugger Memory View' found in the plugin repository, which could be useful.

    0 讨论(0)
  • 2021-01-31 02:18

    You can also use VisualVM Launcher to launch VisualVM from within IDEA. https://plugins.jetbrains.com/plugin/7115?pr=idea I personally find this more convenient.

    0 讨论(0)
  • 2021-01-31 02:19

    You can install the JVisualVM plugin from here: https://plugins.jetbrains.com/plugin/3749?pr=

    This will allow you to analyse the dump within the plugin.

    0 讨论(0)
提交回复
热议问题