Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I stop .mdmp files from being created

Tags:

java

solr

tomcat

I have an instance of Solr, hosted with Tomcat that recently started creating minidump files. There are no errors in any of logs, and Solr continues to work with out a hitch.

The files are approximately 14gb, and are filling up the hard drive. Is there a way to turn this off, while we investigate the issue?

like image 794
Evan Avatar asked Feb 06 '12 15:02

Evan


People also ask

How do I prevent 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 Hs_err_pid files?

The file hs_err_pid. mdmp is a memory dump from a process crash. Any process can create this memory dump. You can safely remove them from server if you face any space issue in your environment.

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.

What creates Mdmp?

MDMP - Windows Minidump File On Windows computers, when a program throws an error or crashes, an MDMP file is created by the operating system. MDMP files are made up of compressed data that are comprised of a data dump from the crashed program's memory.


1 Answers

This article has decent information on both Linux and Windows JVM dump files. Have yet to test it myself on my current version of Java 7....

From that site:

Disabling Text dump Files

If you suspect problems with the creation of text dump files you can turn off the text dump file by using the option: -XXnoJrDump.

Disabling the Binary Crash Files

You can turn off the binary crash file by using the option: -XXdumpSize:none.

like image 76
RPI_alum Avatar answered Sep 28 '22 03:09

RPI_alum