我正在使用命令诊断 JVM 问题jmap
:
jmap -histo:live <pid>
并得到以下提示:
<pid>: Unable to open socket file: target process not responding or HotSpot VM not loaded
The -F option can be used when the target process is not responding
jmap
然后我再次发出-F
选项:
jmap -F -histo:live <pid>
并得到jmap
使用提示。看来我输入了错误的命令选项。为什么会这样?