13

I keep getting and seeing this message

Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

So I need to know

  1. How to enable minidumps in Java (on a Windows machine)
  2. (optional) How interpret a minidump once I have it

I tried to find an answer for those 2 questions but what I found are very specific answers for niche questions and that did not satisfied me.

Alex
  • 5,510
  • 8
  • 35
  • 54

1 Answers1

17

You will need the following JVM option:

-XX:+CreateMinidumpOnCrash

Then the minidump will be as large as the memory used by your JVM.

StackzOfZtuff
  • 2,534
  • 1
  • 28
  • 25
David George
  • 3,693
  • 1
  • 18
  • 22
  • 1
    Where should one get the symbol files for the JVM? – aw-think Jul 12 '15 at 14:14
  • Could you please share the documentation for -XX:+CreateMinidumpOnCrash ? – Aravindharaj G Aug 09 '17 at 07:06
  • 1
    The parameter has changed to CreateCoredumpOnCrash if you are on JDK 9. CreateMDOC was Windows only. The XX flags are specific to the Java HotSpot Virtual Machine. It is true that there is limited documentation for CreateMinidumpOnCrash. I was able to read and interpret the symbol file in Visual Studio to see where the crash ocured. – David George Aug 10 '17 at 12:58