Unable to open socket file: target process not responding or HotSpot VM not loadedThe -F option can be used when the target process is not responding ...
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 respondinga11111
裡面有好幾個hsperfdata開頭的目錄,進目錄看有沒有jstack執行的進程號
經過檢查發現jstack後面的進程不是在root用戶執行的,切換到另一個用戶執行成功
後面發現ps -aux也能看出進程是誰執行的(能不能執行jmap,關鍵看你的進程號是哪個用戶在執行)