zoukankan      html  css  js  c++  java
  • 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输出。

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

    www.beicaiduo.com
  • 相关阅读:
    dedecms5.7安装百度(ueditor)编辑器的方法
    shell多线程之进程间通信(2)
    shell多线程之进程间通信
    awk笔记
    用shell做简单的分布式计算
    C语言实现常用查找算法——二分查找
    C语言实现常用排序算法——基数排序
    C语言实现常用数据结构——堆
    C语言实现常用数据结构——图
    C语言实现常用数据结构——二叉查找树
  • 原文地址:https://www.cnblogs.com/hoge66/p/14589118.html
Copyright © 2011-2022 走看看