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"/>
</junit>
</target>

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 82 times)
  • Attachment: .log
    (Size: 2.64KB, Downloaded 66 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: 123
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:MAT Main Menu Missing
Next Topic:Thread Details/Overview won't open: Object 0x2aab50739d48 not found.
Goto Forum:
  


Current Time: Thu Dec 18 21:57:00 GMT 2014

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

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