linux mat分析dump,使用Eclipse内置的MAT插件分析dump文件时报错

下载下来一点dump文件很大,然后使用mat分析的时候mat本身报错

Out of Memory Error while Running the Memory Analyzer

这是因为eclipse配置的内存太小了导致的,网上查了下都是去改MemoryAnalyzer.ini的参数内容

但对于ecplise内置安装插件来说是找不到这个文件的,

Out of Memory Error while Running the Memory Analyzer

Well, analyzing big heap dumps can also require more heap space. Give it some more memory (possible by running on a 64-bit machine):

MemoryAnalyzer.exe -vmargs -Xmx4g -XX:-UseGCOverheadLimit

Alternatively, edit the MemoryAnalyzer.ini to contain:

-vmargs

-Xmx2g -XX:-UseGCOverheadLimit

As a rough guide, Memory Analyzer itself needs 32 to 64 bytes for each object in the analyzed heap, so -Xmx2g might allow a heap dump containing 30 to 60 million objects to be analyzed. Memory Analyzer 1.3 using -Xmx58g has successfully analyzed a heap dump containing over 948 million objects.

The initial parse and generation of the dominator tree uses the most memory, so it can be useful to do the initial parse on a large machine, then copy the heap dump and index files to a more convenient machine for further analysis.

For more details, check out the section Running Eclipse in the Help Center. It also contains more details if you are running on Mac OS X.

If you are running the Memory Analyzer inside your Eclipse SDK, you need to edit the eclipse.ini file.

也就是最后这句话,如果是eclipse内置安装的话就去改eclipse.ini的参数就可以了

另外附linux服务器生成dump文件命令:

jmap -dump:format=b,file=heapdump.phrof pid

来源:oschina

链接:https://my.oschina.net/u/913484/blog/3051618

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值