Jmap can't connect to make a dump

后端 未结 14 1213
青春惊慌失措
青春惊慌失措 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:29

    If someone tries to get Heap Dump of Java application in Docker container. This is the only solution that worked for me:

    docker exec  jcmd 1 GC.heap_dump /tmp/docker.hprof
    

    It basically dumps the heap of process with pid=1 using jcmd

    See https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/tooldescr006.html

提交回复
热议问题