将.dmp文件转换为.hprof文件

时间:2017-01-04 10:40:48

标签: java heap-dump jmap

我尝试过运行命令

Error attaching to remote server: java.rmi.UnknownHostException: Unknown host: core.20170103.212745.20453.0007.dmp; nested exception is:
    java.net.UnknownHostException: core.20170103.212745.20453.0007.dmp
sun.jvm.hotspot.debugger.DebuggerException: java.rmi.UnknownHostException:     

但是我收到了错误

http://localhost:81/getToken?identity=frend&endpointId=394c15ba68f92e147e827c08b54799e1 404 Not Found

错误是什么?我尝试将它放在TomCat服务器上并运行它但仍然抛出错误

1 个答案:

答案 0 :(得分:1)

您缺少“可执行”参数,因此jmap认为您正在尝试连接到远程主机。 尝试类似的事情:

jmap -dump:format=b,file=jvm.hprof /usr/bin/java core.20170103.212745.20453.0007.dmp