jmap command not found

前端 未结 8 2398
不知归路
不知归路 2021-02-12 11:40

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 11:43

    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.

提交回复
热议问题