Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » Parsing heap dump has encountered a problem
icon11.gif  Parsing heap dump has encountered a problem [message #912824] Fri, 14 September 2012 08:56 Go to next message
Hack Kampbjørn is currently offline Hack KampbjørnFriend
Messages: 1
Registered: September 2012
Junior Member
When parsing a heap dump, MAT fails with a "Parsing heap dump has encountered a problem:
Illegal record length 3,801,619,192 at byte 3,783,934,196 for record type 1

The dump was generated with jmap -F -dump:file= on a linux machine running

java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

Here's the error from the MAT session
!SESSION 2012-09-14 10:41:14.655 -----------------------------------------------
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -keyring /Users/hack/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -keyring /Users/hack/.eclipse_keyring -showlocation

!ENTRY org.eclipse.mat.ui 1 0 2012-09-14 10:42:46.966
!MESSAGE Detected compressed references, because with uncompressed 64-bit references the array at 0x6e0275988 would overlap the array at 0x6e0275928

!ENTRY org.eclipse.mat.ui 2 0 2012-09-14 10:42:47.577
!MESSAGE Heap dump segment at 0x14a18ff size 54,856,185 ends at 0x48f2345 instead of 0x48f22f8

!ENTRY org.eclipse.mat.ui 2 0 2012-09-14 10:42:47.673
!MESSAGE (Possibly) Invalid HPROF file: Expected to read another 3,801,619,192 bytes, but only 587,522,564 bytes are available.

!ENTRY org.eclipse.mat.ui 4 0 2012-09-14 10:42:47.705
!MESSAGE Illegal record length 3,801,619,192 at byte 3,783,934,196 for record type 1
org.eclipse.mat.SnapshotException: Illegal record length 3,801,619,192 at byte 3,783,934,196 for record type 1
	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: Parsing heap dump has encountered a problem [message #915513 is a reply to message #912824] Mon, 17 September 2012 12:51 Go to previous message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 124
Registered: July 2009
Senior Member
This may be related to Bug 368300 Loading a 25GB heap fails with a NegativeArraySizeException, which was closed as a problem with the dump. Does jhat read the dump successfully?
Previous Topic:Error displaying Histogram
Next Topic:Any way of connecting a MAT standalone client to a remote MAT headless instance
Goto Forum:

Current Time: Mon Jan 26 20:45:41 GMT 2015

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

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