Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » Memory analyzer not opening hprof
Memory analyzer not opening hprof [message #1059461] Sun, 19 May 2013 00:07 Go to next message
Brian Bman is currently offline Brian BmanFriend
Messages: 1
Registered: May 2013
Junior Member
I am new to mat, and I am having some issues. I ran the command:

ant run-tests

my build.xml contains the following:
<target name="run-tests">
<junit fork="yes" printsummary="withOutAndErr">
<formatter type="plain" usefile="false" />
<test name="CLASSNAME"/>
<classpath refid="Compiler.classpath"/>
<jvmarg value="-XX:-HeapDumpOnOutOfMemoryError"/>
<jvmarg value="-XX:HeapDumpPath=/mnt/hgfs/RAM/dumps.hprof"/>

and I get a out of memory exception. The file dumps.hprof is created, but when I try to open it in eclipse memory analyzer I get an error. I have attached the hprof (as .rar it's too big) and the .log. Any help would be appreciated.
  • Attachment: dumps.rar
    (Size: 940.20KB, Downloaded 267 times)
  • Attachment: .log
    (Size: 2.64KB, Downloaded 347 times)
Re: Memory analyzer not opening hprof [message #1060603 is a reply to message #1059461] Mon, 27 May 2013 09:38 Go to previous message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 149
Registered: July 2009
Senior Member
The dump is corrupt:
!MESSAGE (Possibly) Invalid HPROF file: Expected to read another 308,909,576 bytes, but only 43,679,837 bytes are available.

Do you usually get bigger heap dumps?
jhat reads the dump but also warns:
WARNING: Unexpected EOF. Will miss information...

Can you try running your tests with a more recent JVM?

I suppose Memory Analyzer could be enhanced to attempt to read a truncated dump, but I'm not sure how useful the result would be.

Previous Topic:Thread Details/Overview won't open: Object 0x2aab50739d48 not found.
Next Topic:OQL: calling Java methods
Goto Forum:

Current Time: Mon Jan 27 15:58:59 GMT 2020

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

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

Back to the top