jmap -dump:format=b,file=/path/to/output_file.hprof <pid>
<pid>替换 进程的PID
/path/to/output_file.hprof 指定输出文件路径和名称