Jmap can't connect to make a dump

后端 未结 14 1199
青春惊慌失措
青春惊慌失措 2020-12-12 17:47

We have an open beta of an app which occasionally causes the heapspace to overflow. The JVM reacts by going on a permanent vacation.

To analyze this I would like to

14条回答
  •  鱼传尺愫
    2020-12-12 18:31

    I was running the jmap and the application with the same user and still get the error.

    The solution was run that comand before the jmap

    echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
    

    Than is just use jmap and will works fine

    jmap -heap 17210
    

提交回复
热议问题