2014-10-22 85 views
0

我被診斷JVM問題jmap命令:JMAP -F(強制)選項不起作用

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使用提示。看來我輸入了錯誤的命令選項。爲什麼發生這種情況?

回答

1

:live不支持-F。嘗試

jmap -F -histo <pid>