Java 如何打开 .hprof 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3350878/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to open .hprof file
提问by gayathri
I am running a Java application and faced an error Out of memory. .hprof file is generated. What do I use to analyse what's in the file? How to read that file? Any suggestion?
我正在运行 Java 应用程序并遇到内存不足错误。.hprof 文件生成。我用什么来分析文件中的内容?如何读取该文件?有什么建议吗?
Thanks in Advance!!!
提前致谢!!!
回答by Manuel Selva
Memory Analyzeris the best tool I found for that. It's free and very efficient.
内存分析器是我为此找到的最好的工具。它是免费的,而且非常有效。
回答by Imposter
You can use Java heap analyser tool as well as MAT . But MAT is the best for finding memory leaks IMO .
您可以使用 Java 堆分析器工具以及 MAT 。但是 MAT 是查找内存泄漏 IMO 的最佳选择。