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ørn
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 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_31
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
!STACK 0
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.Pass1Parser.read(Pass1Parser.java:119)
	at org.eclipse.mat.hprof.HprofIndexBuilder.fill(HprofIndexBuilder.java:65)
	at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(SnapshotFactoryImpl.java:209)
	at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnapshot(SnapshotFactoryImpl.java:120)
	at org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(SnapshotFactory.java:145)
	at org.eclipse.mat.ui.snapshot.ParseHeapDumpJob.run(ParseHeapDumpJob.java:83)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

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 Johnson
Messages: 119
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: Sat Sep 20 16:08:14 GMT 2014

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

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