0

I was diagnosing a JVM problem with jmap command:

jmap -histo:live <pid>

and got the following prompt:

<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

Then I issued jmap again with -F option:

jmap -F -histo:live <pid>

and got the jmap usage prompt. It seems that I typed wrong command options. Why did this happen?

Weibo Li
  • 3,565
  • 3
  • 24
  • 36

1 Answers1

3

:live is not supported with -F. Try

jmap -F -histo <pid>
apangin
  • 92,924
  • 10
  • 193
  • 247