.hprof 文件格式
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您好,只要不再有 hprof 代理,我们就只能使用代码作为格式规范。
所以这里有几个链接。
首先,这是 hprof 代理的旧文档,它可能是多余的,但仍然
http ://hg.openjdk.java.net/jdk6/jdk6/jdk/raw-file/tip/src/share/demo/jvmti/hprof/manual.html 你可以在其中找到hprof规范部分。
接下来,这是来自 jvm 代码的堆转储器和 hprof 规范
链接到 openjdk 存储库
https:// /hg.openjdk.java.net/jdk/jdk/file/9a73a4e4011f/src/hotspot/share/services/heapDumper.cpp
链接到 github 镜像
https://github.com/unofficial-openjdk/openjdk/blob/60b7a8f866123 4c389e247942a0012da30146a57/src/热点/share/services/heapDumper.cpp#L58
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
您可以尝试 SAP 内存分析器。
You could try the SAP Memory Analyzer.