Solve the JVM crash error in the Linux environment: Failed to write core dump. Core dumps have been disabled. To enable core dumping,

1. Environment

OS: Ubuntu 18.04 x64

Java version: JDK1.8

2. Error message

When this error occurs, the system will generate a log file named "hs_err_pidxxxx.log". Open the log file, and you will see errors similar to the following:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fe8b51c11b1, pid=6840, tid=0x00007fe89f0ce700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_202-b08) (build 1.8.0_202-b08)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.202-b08 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x6481b1]  oopDesc::size_given_klass(Klass*)+0x1
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

Post screenshot:

Guess you like

Origin blog.csdn.net/freezingxu/article/details/108573842