Skip to main content


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 -----------------------------------------------
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 messageGo to next message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 205
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?
Re: Parsing heap dump has encountered a problem [message #1588248 is a reply to message #912824] Tue, 27 January 2015 20:58 Go to previous message
subhrajit senapati is currently offline subhrajit senapatiFriend
Messages: 1
Registered: January 2015
Junior Member
!SESSION 2015-01-28 02:08:25.816 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.mat.ui 1 0 2015-01-28 02:08:48.163
!MESSAGE Detected compressed references, because with uncompressed 64-bit references the array at 0x123f30d80 would overlap the array at 0x123f30cd0

!ENTRY org.eclipse.core.jobs 4 2 2015-01-28 02:08:55.019
!MESSAGE An internal error occurred during: "Parsing heap dump from 'C:\Users\neeraj\Desktop\HeadDumpAnalysis\jrockit_18281.hprof'".
!STACK 0
java.lang.OutOfMemoryError: Java heap space
at org.eclipse.mat.parser.index.IndexWriter.copyOf(IndexWriter.java:2013)
at org.eclipse.mat.parser.index.IndexWriter$Identifier.add(IndexWriter.java:93)
at org.eclipse.mat.hprof.HprofParserHandlerImpl.reportInstance(HprofParserHandlerImpl.java:532)
at org.eclipse.mat.hprof.Pass1Parser.readPrimitiveArrayDump(Pass1Parser.java:577)
at org.eclipse.mat.hprof.Pass1Parser.readDumpSegments(Pass1Parser.java:366)
at org.eclipse.mat.hprof.Pass1Parser.read(Pass1Parser.java:175)
at org.eclipse.mat.hprof.HprofIndexBuilder.fill(HprofIndexBuilder.java:80)
at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(SnapshotFactoryImpl.java:222)
at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnapshot(SnapshotFactoryImpl.java:126)
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)
Previous Topic:Dominator tree
Next Topic:Internal error
Goto Forum:
  


Current Time: Fri Apr 19 14:00:58 GMT 2024

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

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

Back to the top