分析Java堆转储时内存不足 [英] Running out of memory while analyzing a Java Heap Dump
问题描述
我有一个奇怪的问题,我需要分析大小为1.5GB的Java堆转储(来自IBM JRE),问题是在分析转储时(我尝试了 IBM内存分析器0.5 ),这些工具内存不足,我无法真正分析转储.我的计算机中有3GB的RAM,但似乎不足以分析1.5GB的转储,
I have a curious problem, I need to analyze a Java heap dump (from an IBM JRE) which has 1.5GB in size, the problem is that while analyzing the dump (I've tried HeapAnalyzer and the IBM Memory Analyzer 0.5) the tools runs out of memory I can't really analyze the dump. I have 3GB of RAM in my machine, but seems like it's not enough to analyze the 1.5 GB dump,
我的问题是,您是否知道可以使用现有的内存量运行的用于堆转储分析的特定工具(支持IBM JRE转储)?
My question is, do you know a specific tool for heap dump analysis (supporting IBM JRE dumps) that I could run with the amount of memory I have?
谢谢.
推荐答案
Try the SAP memory analyzer tool, which also has an eclipse plugin. This tool creates index files on disk as it processes the dump file and requires much less memory than your other options. I'm pretty sure it supports the newer IBM JRE's. That being said - with a 1.5 GB dump file, you might have no other option but to run a 64-bit JVM to analyze this file - I usually estimate that a heap dump file of size n takes 5*n memory to open using standard tools, and 3*n memory to open using MAT, but your milage will vary depending on what the dump actually contains.
这篇关于分析Java堆转储时内存不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!