How do I stop .mdmp files from being created

前端 未结 4 2470
庸人自扰
庸人自扰 2021-02-20 07:10

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.

相关标签:
4条回答
  • 2021-02-20 07:45

    I never found a way to disable the Java minidumps on windows. The strange part here is that everything on the server worked correctly, besides the hard drive filling up with minidumps.

    We eventually re-installed everything, same version of Solr/Java/Tomcat onto a linux machine and didn't have the problem any more. I would imagine that re-installing everything onto a windows machine would have also fixed the problem. This was a strange one.

    0 讨论(0)
  • 2021-02-20 07:49

    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.

    0 讨论(0)
  • 2021-02-20 07:51

    Generally speaking when JVM crashes the content of hs_err error log file (controlled by -XX:ErrorFile) is often enough to point what the trouble may be.

    To prevent Oracle JVM Hotspot to generate Windows minidump (mdmp files), the JVM option to use on command line is: -XX:-CreateMinidumpOnCrash

    It exists since 2011 but was very difficult to find: How to disable minidump (mdmp) files generation with Java Hotspot JVM on Windows

    0 讨论(0)
  • 2021-02-20 07:52

    Are you using Java 7? In that case revert to Java 5 or 6. Lucene/Solr and Java 7 don't go well together and it could be this creates the dump files. Otherwise if everything is working, just disable the dumping of files.

    0 讨论(0)
提交回复
热议问题