How to disable minidump (mdmp) files generation wi

2019-03-18 01:40发布

Currently I have a deployed executable jar file that creates large (7+ Gb) minidump files when it crashes. I would like to have a text representation of what caused the crash, not a binary file of the JVM state. I've tried using the information found in this CodeRanch post and the documentation that I've found in the Java documentation doesn't seem to help.

I also referenced this question but there's no definitive answer.

Is there a typical way this is done that I'm not aware of?

1条回答
欢心
2楼-- · 2019-03-18 02:41

I found a command line option that seems to do what I want. Launching the jar with

java -XX:-CreateMinidumpOnCrash -jar myJar.jar

Seems to do the trick and will generate error logs that are very small compared to the minidumps.

查看更多
登录 后发表回答