简体   繁体   English

IBM堆泵分析器| 内存不足

[英]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.

相关问题 在“Out of Memory”之后找到堆转储的位置 - Where to find the heap dump after an “Out Of Memory” java选项内存不足时堆转储 - java option Heap dump on out of memory 内存不足时的Java EE堆转储 - Java EE heap dump on Out of Memory jvm 创建堆转储但没有超出 memory - jvm create heap dump but without out of memory IBM Heap Analyzer-完成方法 - IBM Heap Analyzer - finalize method 为什么 Java 内存转储分析器中的堆总量与内存设置和 JVM 总使用量不对应? - Why Heap total in the Java memory dump analyzer does not correspond to memory settings and the total JVM usage? 使用内存分析器(MAT)的扫描程序OutOfMemoryError和Java堆转储分析 - Scanner program OutOfMemoryError & Java Heap dump analysis using Memory analyzer (MAT 在 java eclipse Memory 分析器中:获取堆转储对话框显示没有要获取的 PID - in java eclipse Memory Analyzer: Acquire Heap Dump Dialog shows no PID to acquire 如何使用堆转储识别Java Memory Analyzer中对象的引用所有者 - How to identify holder of reference to object in Java Memory Analyzer using heap dump eclipse 内存分析器看到整个堆转储 (8GB) 的一小部分 (363,2MB) - eclipse memory analyzer sees small part (363,2MB) of entire heap dump (8GB)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM