Exception when taking a heapdump using JMAP

后端 未结 2 1147
孤独总比滥情好
孤独总比滥情好 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.

    0 讨论(0)
  • 2021-01-17 11:31

    If OpenJDK is used, it requires installation of debuginfo-packages.

    In Centos this works with - sudo debuginfo-install java-1.8.0-openjdk - or sudo yum install java-1.8.0-openjdk-debuginfo.x86_64

    See - https://bugzilla.redhat.com/show_bug.cgi?id=1010786#c15 - amazon linux - install openjdk-debuginfo?

    0 讨论(0)
提交回复
热议问题