前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >JVM报错:Failed to write core dump. Core dumps have been disabled.

JVM报错:Failed to write core dump. Core dumps have been disabled.

作者头像
程裕强
发布2019-09-25 16:02:37
16.5K0
发布2019-09-25 16:02:37
举报

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

本文链接:https://blog.csdn.net/chengyuqiang/article/details/101192730

代码语言:javascript
复制
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0x7) at pc=0x00007f9d3d100c50, pid=29904, tid=0x00007f9ca2bfb700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_192-b12) (build 1.8.0_192-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.192-b12 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libzip.so+0x11c50]  newEntry.isra.4+0x60
#
# 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:
# /opt/apache-tomcat-8.5.35/hs_err_pid29904.log
Compiled method (nm) 107233860  175     n 0       java.util.zip.ZipFile::getEntry (native)
 total in heap  [0x00007f9d2916e050,0x00007f9d2916e3c0] = 880
 relocation     [0x00007f9d2916e178,0x00007f9d2916e1c0] = 72
 main code      [0x00007f9d2916e1c0,0x00007f9d2916e3c0] = 512
#
# 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.

网上提供的解决办法,尝试如下

代码语言:javascript
复制
[root@elastic1 logs]# ulimit -c unlimited
[root@elastic1 logs]# ulimit -c -l
core file size          (blocks, -c) unlimited
max locked memory       (kbytes, -l) 64
[root@elastic1 logs]# 

这里备注一下:该方法并未解决问题,希望这里不要对其他网友产生误解。

下面一篇博文提供了解决思路 https://www.cnblogs.com/songyuejie/p/11221381.html

默认情况下Linux服务起的core core file size设置为0,需要调整该参数,但是这个参数并不能 解决问题; 问题的根本原因在于服务器的运行应用程序的打开文件的最大数及最大进程数设置的相对较小默认为4096 需要修改如下配置: /etc/security/limits.conf

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019年09月23日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档