Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable minidumps in Java for Windows

Tags:

java

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.

like image 254
Alex Avatar asked Aug 27 '13 07:08

Alex


People also ask

How do I fix Minidumps are not enabled by default on client versions of Windows?

Minidumps are not enabled by default on client versions of Windows” error due to a Dynamic Link Library file. To fix the issue, you can try updating the Intel graphics card driver.

How do I enable core dumping in Java?

To control the core dump file size, you use the ulimit command, and the -c argument. You set it to 0 to disable core dumps, and to unlimited to enable them. If you run ulimit -c unlimited , you will enable core dumps for all users and all programs.

Where are Windows Minidumps located?

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.

Where is the minidump file in Windows 10?

Your dump file is named C:\Windows\Minidump\Minidump. dmp .


1 Answers

You will need the following JVM option:

-XX:+CreateMinidumpOnCrash

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

  • To interpret the minidump you can install the free Visual Studio C++ Express edition for your platform: http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx

  • You will also need the symbols for the DLLs that you are interested in. There is some information on using the Microsoft Symbol server here: http://support.microsoft.com/kb/311503

  • You would also need the symbol files for the JVM.

like image 85
David George Avatar answered Sep 18 '22 13:09

David George