jmap command not found

前端 未结 8 2159
名媛妹妹
名媛妹妹 2021-02-12 11:42

I\'m trying to use the jmap command on my CentOS server but it keeps telling me that the command was not found even though I have the JDK installed.

8条回答
  •  你的背包
    2021-02-12 12:04

    OpenJDK on centos doesn't include the jmap utility. test on another platform or use the jhat java_pid1234.hprof command to examine the dump after the fact on another platform.

    jhat can be slow to run on large dumps and even run out of memory! I use jhat -port 7000 -J-mx2048m java_pid1234.hprof so you'll need plenty of ram on your computer.

提交回复
热议问题