如何在eclipse中打开eclipse内存分析器索引文件

How to open eclipse memory anaylzer index files in eclipse

我有堆转储文件 testdump.hprof。我使用以下命令解析了这个文件。

./ParseHeapDump.sh /home/rajkumar/Documents/heap-dump-ads03/testdump.hprof

以上命令生成了以下文件。

testdump.threads

testdump.idx.index

testdump.o2c.index

testdump.a2s.index

testdump.inbound.index

testdump.outbound.index

testdump.o2hprof.index

testdump.index

testdump.domIn.index

testdump.o2ret.index

testdump.domOut.index

我已经在我的 eclipse 中安装了 eclipse 内存分析器插件 IDE。我不知道如何打开IDE中的索引文件进行分析。我直接打开索引文件,但它显示一些二进制字符串。

知道如何在 eclipse 中打开索引文件吗?

将 MAT 安装到 Eclipse 后,打开内存分析透视图,然后执行文件 > 打开堆转储 >“/home/rajkumar/Documents/heap-dump-ads03/testdump.hprof”,这将使用现有索引文件打开堆转储(所以无需重新解析)。 然后转到工具栏 'Run Expert System Test' > 'Leak Suspects' 到 运行 泄漏嫌疑人报告。

正如 suv3ndu 所说,您还可以从命令行 运行 报告。您还可以使用 'Run Expert System Test' > 'Open Report'.

从 GUI 打开现有的报告 zip