Exception when taking a heapdump using JMAP

后端 未结 2 1149
孤独总比滥情好
孤独总比滥情好 2021-01-17 10:49

I get the following exception when i take a heapdump using

jmap -F -dump:format=b,file=/tmp/heapdump/before.hprof 10737

Attaching t         


        
2条回答
  •  爱一瞬间的悲伤
    2021-01-17 11:31

    I was seeing the same error because my path to jmap wasn't the same as the path to the java process (i.e. targeting two different versions).

    Running jmap with the full path to my JDK resolved it.

提交回复
热议问题