Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Memory Analyzer (MAT) » An out of memory error has occurred during parsing heap dump
An out of memory error has occurred during parsing heap dump [message #9829] Mon, 30 March 2009 20:57 Go to next message
Maya Fishkis is currently offline Maya Fishkis
Messages: 3
Registered: July 2009
Junior Member
Hello All,

I am running a Java program using Eclipse3.4.2. in Windows Vista.
I have set VM arguments :
-Xms512m
-Xmx1500m
After the program runs for some time, the error message pops-up:
“Java.lang. OutOfMemory Error”

My computer has 6GB of RAM but, if I try to increase the value of Xmx to
2GB,
it doesn’t run and a message comes up:
“Could not reserve enough space for object heap“

I installed the Eclipse Memory Analyzer in the Eclipse using “Software
Updates and Add-ons” and tried to open the heap dump but then received the
message:
“An out of memory error has occurred during parsing heap dump”

Can anybody give me advice on how to proceed?
Thank you in advance.

Maya
Re: An out of memory error has occurred during parsing heap dump [message #9874 is a reply to message #9829] Thu, 02 April 2009 03:22 Go to previous messageGo to next message
Erwin Margewitsch is currently offline Erwin Margewitsch
Messages: 17
Registered: July 2009
Junior Member
Hi Maya,

it seems that you are running under 32 bit... The maximum amount of memory
that can be allocated under Windows 32-bit is roughly 1.4 - 1.5 GB (for
Java processes).

To get rid of the OOM during parsing the heapdump you should increase the
memory setting inside the eclipse.ini... In my installation eclipse 3.4.2
runs with
256 Mb... Try to replace the value of the -Xmx option with -Xmx1024m or a
higher value.

Erwin
Re: An out of memory error has occurred during parsing heap dump [message #9989 is a reply to message #9874] Mon, 06 April 2009 17:50 Go to previous messageGo to next message
Maya Fishkis is currently offline Maya Fishkis
Messages: 3
Registered: July 2009
Junior Member
Hi Erwin,

Thank you for your help.

I didn't mention in my initial message that I ran the test under the
modified
eclipse.ini:

-startup
plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125. jar
--launcher.library
plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101 .R34x_v20080731
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1500m
-vmargs
-Xms540m
-Xmx1500m

and I still got the message:
"An out of memory error has occurred during parsing heap dump”

Any other suggestions?

Thank you,

Maya
Re: An out of memory error has occurred during parsing heap dump [message #10011 is a reply to message #9989] Tue, 07 April 2009 05:06 Go to previous messageGo to next message
Erwin Margewitsch is currently offline Erwin Margewitsch
Messages: 17
Registered: July 2009
Junior Member
Hi Maya,

Regarding your settings I'm wondering why you need so much PermSize?

So I would recommend to set the MaxPermSize to 256m and also to decrease
-Xmx to 1024m. Try to load/parse the heapdump again... Normally these
settings work for all 32 bit heap dumps...

If you don't want to change your settings, I would recommend to download a
separate RCP of MAT and try to parse your dump with this separate
installation of MAT. (Here you have additionally the possibilty to parse
the heap dump within the command shell with: "ParseHeapDump.bat <path to
dump>".)

I hope one of the proposals works for you.

Erwin
Re: An out of memory error has occurred during parsing heap dump [message #526869 is a reply to message #9989] Tue, 13 April 2010 07:13 Go to previous messageGo to next message
ballerup  is currently offline ballerup
Messages: 2
Registered: April 2010
Junior Member
Maya, did you ever get this to work in eclipse ? I have a 6g heap dump I cannot load. Niether in eclipse nor in a MAT stand-alone program. Thanks. Ballerup
Re: An out of memory error has occurred during parsing heap dump [message #534027 is a reply to message #526869] Mon, 17 May 2010 14:36 Go to previous messageGo to next message
Gary Karasiuk is currently offline Gary Karasiuk
Messages: 12
Registered: July 2009
Junior Member
What we find, is that most dumps can be processed on 32 bit machines. But there are some that are so large, that we need to use 64 bit machines.

I would suggest trying this on a 64 bit machine.
Re: An out of memory error has occurred during parsing heap dump [message #534208 is a reply to message #534027] Tue, 18 May 2010 07:35 Go to previous messageGo to next message
ballerup  is currently offline ballerup
Messages: 2
Registered: April 2010
Junior Member
Hi Gary.

Thanks. We ended up using jhat on a Solaris, connecting from a vbox on win xp, exporting the jhat window to the vbox. So no eclipse this time...

Best ballerup
Re: An out of memory error has occurred during parsing heap dump [message #534229 is a reply to message #526869] Tue, 18 May 2010 08:35 Go to previous message
Krum Tsvetkov is currently offline Krum Tsvetkov
Messages: 149
Registered: July 2009
Senior Member
For a 6GB heap dump you will need a larger heap for the Memory Analyzer. You will need a 64 bit box. It is difficult to say how much heap you'll need to specify, as this depends on the number of objects in the heap and sometimes also on the shape of the object graph. From my experience you will need between 4GB and 6GB for the tool to analyze this.

On the download page there are RCPs for different 64 bit platforms. If you have no chance to run the Eclipse GUI, then you can run the ParseHeapDump script. Later you should be able to move the heap dump and all the generated .index files to a 32 bit box and analyze them there.

See http://wiki.eclipse.org/index.php/MemoryAnalyzer/FAQ#Out_of_ Memory_Error_while_Running_the_Memory_Analyzer for a description how to run MAT with more heap.

I hope this helps.
Previous Topic:Memory Analyzer 1.0 Is Released
Next Topic:GC Root Unfinalized
Goto Forum:
  


Current Time: Fri Aug 29 04:14:50 EDT 2014

Powered by FUDForum. Page generated in 0.02266 seconds