Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » cannot load hprof file with heap dump error(heap exhaust running analyzer...1.9)
cannot load hprof file with heap dump error [message #1808607] Thu, 27 June 2019 17:29 Go to next message
Bill Rodriguez is currently offline Bill RodriguezFriend
Messages: 1
Registered: June 2019
Junior Member
I am running Memory Analyzier 1.9 and getting the following:

An internal error occurred during: "Parsing heap dump from 'C:\Users\brodriguez\R4.7\java_pid121629.hprof'".
Java heap space

the file is 2.7gig...i have a 16gig windows 7 box and have about 70% memory avaiable...

I have spent several hours trying to figure this out with no luck...
I have tried:
-Xmx8g and 4g and 1024m -- -same result in the .ini file...


java.lang.OutOfMemoryError: Java heap space
at org.eclipse.mat.parser.index.IndexWriter.copyOf(
at org.eclipse.mat.parser.index.IndexWriter$Identifier.add(
at org.eclipse.mat.hprof.HprofParserHandlerImpl.reportInstance(
at org.eclipse.mat.hprof.Pass1Parser.readPrimitiveArrayDump(
at org.eclipse.mat.hprof.Pass1Parser.readDumpSegments(
at org.eclipse.mat.hprof.HprofIndexBuilder.fill(
at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(
at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnapshot(
at org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(
Re: cannot load hprof file with heap dump error [message #1809560 is a reply to message #1808607] Thu, 18 July 2019 08:57 Go to previous message
Taly Elani is currently offline Taly ElaniFriend
Messages: 1
Registered: July 2019
Junior Member

This worked for me.
I'm trying to load a ~2.5gb heap dump on Windows 10 64-bit
1) Set higher xmx here : Control Panel > Java > Java tab > View.. > Runtime parameters. [I went crazy and set it to 20gb just for the load]

2) Go to ~/mat/MemoryAnalyzer.ini and set the -xmx parameter to the same value. (its the last parameter in the file)

3) Open MAT and try loading the file again.

Hopefully this helps.
Previous Topic:How to write MAT Custom Reports?
Next Topic:Pie chart does not display in overview tab of Memory Analyzer
Goto Forum:

Current Time: Sat Jan 25 12:08:29 GMT 2020

Powered by FUDForum. Page generated in 0.01902 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top