如何在IntelliJ中分析堆转储?(内存泄漏) [英] How can I analyze a heap dump in IntelliJ? (memory leak)

查看:113
本文介绍了如何在IntelliJ中分析堆转储?(内存泄漏)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 jmap 工具从运行了几天的Java应用程序生成了一个堆转储->这导致了一个大的二进制堆转储文件.

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.

如何在IntellIJ IDEA中对此堆转储执行内存分析?

How can I perform memory analysis of this heap dump within IntellIJ IDEA?

我知道有用于Eclipse和Netbeans的工具,但如果可能的话,我宁愿使用IDEA.

I know that there are tools for Eclipse and Netbeans but I would rather use IDEA if possible.

分析的基本结果将告诉我每个类在内存中每个对象的实例数,从而使我能够开始调试内存泄漏.

The basic results of the analysis would tell me the number of instances of each object in memory, per-class, to allow me to be able to start debugging memory leaks.

推荐答案

最好的方法是 Memory Analyzer(MAT),IntelliJ没有捆绑的堆转储分析器.

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

这篇关于如何在IntelliJ中分析堆转储?(内存泄漏)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆