hprof file format
Asked Answered
B

2

10

Does anyone know a reference for the .hprof (binary heap dumps) file format?

Does anyone know libraries that handle .hprof files? I know that hat does that and also VisualVM through a NetBeans plugin. But are there others?

Bagel answered 25/8, 2009 at 16:7 Comment(0)
A
3

You could try the SAP Memory Analyzer.

Ambry answered 25/8, 2009 at 16:23 Comment(3)
Adamski, thanks for the link. I browsed the source and in the AbstractParser class I found a reference to heap-snapshot.dev.java.net/files/documents/4282/31543/… So, I guess for the file format reference, that's the answer.Bagel
And now... 'The Answer' has expired... dead link.Pictograph
Here's an updated link.Permission
I
8

Hi as long as there is no more hprof agent with it doc we can only use code as a format specification.

So here is few links.

first of all here is old doc for hprof agent, it could be redundant but stil http://hg.openjdk.java.net/jdk6/jdk6/jdk/raw-file/tip/src/share/demo/jvmti/hprof/manual.html you can find hprof specification section in it.

Next, here is heap dumper and hprof spec from jvm code link to openjdk repo

https://hg.openjdk.java.net/jdk/jdk/file/9a73a4e4011f/src/hotspot/share/services/heapDumper.cpp

link to github mirror

https://github.com/unofficial-openjdk/openjdk/blob/60b7a8f8661234c389e247942a0012da30146a57/src/hotspot/share/services/heapDumper.cpp#L58

Infallible answered 13/12, 2018 at 10:36 Comment(0)
A
3

You could try the SAP Memory Analyzer.

Ambry answered 25/8, 2009 at 16:23 Comment(3)
Adamski, thanks for the link. I browsed the source and in the AbstractParser class I found a reference to heap-snapshot.dev.java.net/files/documents/4282/31543/… So, I guess for the file format reference, that's the answer.Bagel
And now... 'The Answer' has expired... dead link.Pictograph
Here's an updated link.Permission

© 2022 - 2024 — McMap. All rights reserved.