jProfiler 需要多少内存来分析大小为 X 的堆转储? [英] How much memory does jProfiler need to analyze a heap dump of size X?

查看:64
本文介绍了jProfiler 需要多少内存来分析大小为 X 的堆转储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的堆大小为 X(= 5 GB).我应该为 jprofiler 分配多少来有效地分析这个堆?

I have a heap size of X (= 5 giga bytes). How much should I allocate for jprofiler to efficiently analyze this heap?

推荐答案

我建议使用 Eclipse MAT 查看堆转储.它在大小为 X 的堆转储的内存要求方面做得更好,因为它在磁盘上创建中间索引文件,而不是将整个内容吸收到它自己的内存中.大多数工具需要 X 的多个 N 才能打开堆转储,其中 N 通常 >= 2.此外,如果您要给它们超过 2g,请确保启动在 64 位中运行 MAT 或 JProfiler 的 Java 进程记忆力.

I would recommend using Eclipse MAT to view the heap dump. It does a much better job in terms of memory requirements for a heap dump of size X because it creates intermediate index files on disk instead of sucking up the whole thing into it's own memory. Most tools require some multiple N of X to open the heap dump where N is usually >= 2. Also, make sure to start the Java process that runs MAT or JProfiler in 64-bit if you're going to give them more than 2g of memory.

这篇关于jProfiler 需要多少内存来分析大小为 X 的堆转储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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