0

我正在使用命令诊断 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使用提示。看来我输入了错误的命令选项。为什么会这样?

4

1 回答 1

2

:live不支持-F。尝试

jmap -F -histo <pid>
于 2014-10-22T18:45:33.097 回答