[英]How to create thread and core dump on JVM crash
How can I create a thread and core dump on the JVM crash?如何在 JVM 崩溃时创建线程和核心转储? Does any JVM argument exist which creates a file with these dumps when JVM crash suddenly?
当 JVM 突然崩溃时,是否存在任何使用这些转储创建文件的 JVM 参数?
In my case, I need to prepare Java Virtual Machine to create that file.就我而言,我需要准备 Java 虚拟机来创建该文件。
As stated above, this is solution for OOM .如上所述, 这是 OOM 的解决方案。
For other fatal errors jvm provide -XX:OnError
Option.对于其他致命错误,jvm 提供
-XX:OnError
选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.