How do I produce a heap dump with only a JRE?

后端 未结 4 1855
抹茶落季
抹茶落季 2020-12-31 04:32

We have a JRE installed on our production environment, but not a JDK. The versions of the JRE and OS are below.

[me@mymachine ~]$ java -version
java version &         


        
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-31 05:10

    Use jattach, a tool created by JVM hacker Andrei Pangin. It's tiny (24KB), works with just JRE and supports Linux containers.

    jattach PID-OF-JAVA dumpheap

提交回复
热议问题