문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top