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

后端 未结 4 1870
抹茶落季
抹茶落季 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:03

     kill -3 
    

    thread dump will be sent in to /logs/catalina.out file

    OR use combination below :

    -XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput -XX:LogFile=~/jvm.log
    

    if you want to redirect., but for that you have to run your process through command line.

提交回复
热议问题