jmap支持ascii格式的堆转储和二进制转储格式
我使用 jmap 转储堆内存
jmap -dump:format=b,file=test.hprof 22035
据我所知, ,存在堆转储 ascii 格式。但执行下面的命令
jmap -dump:format=a,file=test.hprof 22035
jmap 打印用法。
ASCII 格式不存在?
我喜欢了解堆转储二进制格式文档。 谷歌搜索..没有答案,没有文档。
这是二进制格式文件的片段。
I use jmap to dump heap memeory
jmap -dump:format=b,file=test.hprof 22035
as far as I know, heap dump ascii format exists. but execute below command
jmap -dump:format=a,file=test.hprof 22035
jmap Usage printed.
ASCII format doesn't exist?
And I like to know heap dump binary format documentation.
googling.. there is no answer, no documenation.
Here is the snippest of binary format file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有文本格式,只有:
这是有道理的,以文本格式转储 JVM 内存将需要大量 GiB...该文件可以由堆转储分析器读取,例如 Eclipse mat 或 JProfiler。
另请参阅
There is no text format, only:
This makes sense, dumping memory of JVM in text format would take lots of GiB... This file can be read by heap dump analyzers like Eclipse mat or JProfiler.
See also
只需通过
less
(具有用于显示控制字符的各种选项)或xxd
等过滤器(默认情况下执行十六进制转储和 ASCII 转储)传输二进制输出即可。不可能有真正的 ASCII 格式,因为这是二进制数据; ASCII 不包含任何设置了第 7 位的字节,这会遗漏很多重要信息。
一些文档在这里: http://java.sun.com/开发人员/technicalArticles/Programming/perfanal/java.hprof.txt
just pipe the binary output through a filter like
less
(has various options for display of control characters), orxxd
, which does a hexdump and ASCII dump by default.there can be no true ASCII format since this is binary data; ASCII doesn't include any byte with bit 7 set, which would leave out a lot of important information.
some documentation is here: http://java.sun.com/developer/technicalArticles/Programming/perfanal/java.hprof.txt