tomcat 总是挂掉,提示Failed to write core dump错误,如何解决

# A fatal error has been detected by the Java Runtime Environment:
#
#
[error occurred during error reporting (printing exception/signal name), id 0x7]

, pid=2178, tid=0x00007fad591b5700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_221-b11) (build 1.8.0_221-b11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.221-b11 mixed mode linux-amd64 compressed oops)
# Problematic frame:
#
[error occurred during error reporting (printing problematic frame), id 0x7]

# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /usr/local/tomcat9/bin/hs_err_pid2178.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

  tomcat 总是挂掉,提示Failed to write core dump错误,如何解决

上面重要一句话是

# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
告诉我们用这个命令解决问题 ulimit -c unlimited

  

core dump就是在进程crash时把包括内存在内的现场保留下来,以备故障分析。 但有时候,进程crash了却没有输出core,因为有一些因素会影响输出还是不输出core文件。 常见的一个coredump开关是ulimit -c,它限制允许输出的coredump文件的最大size,如果要输出的core文件大小超过这个值将不输出core文件。

ulimit -c的输出为0,代表关闭core dump输出。

 

不知道问题有木有解决???

posted @ 2021-03-28 16:50  hoge  阅读(6843)  评论(0编辑  收藏  举报