How to disable minidump (mdmp) files generation with Java Hotspot JVM on Windows
Asked Answered
I

1

19

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?

Invalidate answered 31/3, 2014 at 18:52 Comment(2)
Take care that -XXdumpSize:none is the JRockit specific option you may quickly find when googling about this question. Hotspot JVM is not JRockit.Airboat
FYI: Here's a mapping table for JRockit JVM and HotSpot JVM options: docs.oracle.com/javacomponents/jrockit-hotspot/migration-guide/… -- Some of the dump options unfortunately only appear in the JRockit JVM column.Matthia
I
23

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.

Invalidate answered 31/3, 2014 at 20:28 Comment(1)
Really difficult to find this option to prevent generation of Java JVM mdmp files on Windows system.Airboat

© 2022 - 2024 — McMap. All rights reserved.