Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 315
Lucas Avatar asked Mar 31 '14 18:03

Lucas


People also ask

How do you stop Mdmp files?

To disable generation of MDMP files: Go to InstallerVars file. Change the option: - XXdumpsize to 'none', as per the below screenshot.

Can I delete Mdmp files?

The mdmp files are the compressed dumps that are sent to microsoft. As these are just files being used for debugging, you can delete them all safely. If your userdumps folder continues to gain these files, then your system is having problems. Any application that crashes will leave these dump files.

Can you configure where and if .mdmp dump files are created?

Can you configure where and if . mdmp dump files are created? yes depends on operating system.

Where are Windows minidump files?

The Windows minidump file is found in the "minidump" subfolder of the Windows system folder (e.g., "C:\Windows\minidump") and looks somewhat similar to this: Mini030915-01. dmp.


1 Answers

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.

like image 197
Lucas Avatar answered Sep 22 '22 03:09

Lucas