Gre*_*ant 5 java jmap eclipse-memory-analyzer
使用工具jmap,可以创建两种格式的内存转储:
Binary format: jmap -dump:format=b,file=binary_dump.dat <pid>
Run Code Online (Sandbox Code Playgroud)
要么
Other format: jmap -dump:file=other_format_dump.dat <pid>
Run Code Online (Sandbox Code Playgroud)
我读过很多地方,例如jhat和jvisualvm等工具只能读取二进制格式。
所以:
我有一个使用其他格式创建的内存转储文件,需要能够对其进行检查,最好使用Eclipse Memory Analyzer Tool进行检查。