[英]IBM Heap Dump Analyzer | Out of memory
I am running on 7 GM Ram machine , I have a heap dump file of size 1.8 GB . 我在7 GM Ram机器上运行,我有一个大小为1.8 GB的堆转储文件。 I am using Java 8 of 64 bit and running on 64 bit machine. 我使用64位Java 8并在64位机器上运行。
When i try to open the phd file from heap dump analyzer tool , it throws out of memory error. 当我尝试从堆转储分析器工具打开phd文件时,它会抛出内存错误。 I am setting java vm args for heap analyzer tool as below 我正在为堆分析器工具设置java vm args,如下所示
java -Xmx4g -XX:-UseGCOverheadLimit java -Xmx4g -XX:-UseGCOverheadLimit
but still i am unable to open file. 但我仍然无法打开文件。 Please let me know how can i overcome this. 请让我知道如何克服这个问题。
This happens due to that the default heap size is smaller than needed by the dump size to be loaded, to resolve this, you need to set the VM args Xms, and XmX with the right values, below is what worked for me: 发生这种情况的原因是默认堆大小小于要加载的转储大小所需的大小,要解决此问题,需要设置VM args Xms,并使用正确的值设置XmX,下面是对我有用的:
"<JAVA_PATH>\Java.exe" -Xms256m -Xmx6144m -jar <HEAP_ANALYSER_NAME>.jar
I hope that helps, I know it is a bit late response :) 我希望有所帮助,我知道这有点晚了回应:)
I faced the same issue multiple times. 我多次遇到同样的问题。 I noticed that the analyzer runs better on Linux. 我注意到分析器在Linux上运行得更好。 On windows it needs a very large amount of memory most of the times - and surprisingly I did not see any apparent direct co-relation between the heapdump size and the required xmx size by the analyzer. 在Windows上,它大多数时候都需要非常大量的内存 - 令人惊讶的是,我没有看到分析器大小与所需xmx大小之间存在明显的直接相关关系。
You can either try on Linux if that is an option, or increase the xmx size further. 如果是选项,您可以尝试使用Linux,也可以进一步增加xmx大小。
I Installed JDK 1.8 along with JRE 1.8 and made the changes Java Runtime Environment Settings : java control panel --> Java --> View --> User (Run Time Parameters to -Xms256m -Xmx6144m) and enable both JRE and JDK 1.8 versions. 我安装了JDK 1.8和JRE 1.8并更改了Java运行时环境设置:java控制面板 - > Java - >查看 - >用户(运行时参数为-Xms256m -Xmx6144m)并启用了JRE和JDK 1.8版本。
This works out finally :) ; 这最终成功:); give it a try, JDK1.8 64bit in Windows. 尝试一下,Windows中的JDK1.8 64位。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.