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輸出。

 

不知道問題有木有解決???


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM