JDK在运行过程中,报出Minidumps无法写入的错误,原因是JDK默认没有开启Minidumps选项,所以在JDK发生致命错误时,无法写入Minidumps。
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffcd3a643d7, pid=21676, tid=0x0000000000004e3c
#
# JRE version: Java(TM) SE Runtime Environment (8.0_201-b09) (build 1.8.0_201-b09)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.201-b09 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [MTConnector64.dll+0x43d7]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
解决办法是在JDK的VM arguments中添加CreateMinidumpOnCrash选项,如下图:
-XX:+CreateMinidumpOnCrash