前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >hs_err_pid

hs_err_pid

作者头像
用户1225216
发布2018-03-05 14:39:18
1.8K0
发布2018-03-05 14:39:18
举报
文章被收录于专栏:扎心了老铁扎心了老铁

hs_err_pid这种文件,是JVM出现错误时dump下来的。记录了错误发生当时:

1)JVM的状态参数

2)Linux的状态参数

 就以下面的文件为例:

代码语言:javascript
复制
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create GC thread. Out of system resources.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   In 32 bit mode, the process size limit was hit
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Use 64 bit Java on a 64 bit OS
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (gcTaskThread.cpp:48), pid=92270, tid=140070527960832
#
# JRE version:  (8.0_77-b03) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.77-b03 mixed mode linux-amd64 compressed oops)
# Core dump written. Default location: /data/home/data_monitor/dmonitor/dmonitor/core or core.92270 (max size 100000 kB). To ensure a full core dump, try "ulimit -c unlimite
d" before starting Java again
#

 出现上述文件的可能原因是:

1)内存不够

2)进程打开数达到上限

1、释放内存 请参看这篇文章

http://www.cnblogs.com/kangoroo/p/7375604.html

2、修改进程打开数上限

修改文件/etc/security/limits.conf

代码语言:javascript
复制
idata@qa-f1502-xg01.xg01:~$ vim /etc/security/limits.conf 

修改例子如下

代码语言:javascript
复制
arch          soft    nproc           102400
arch          hard    nproc           102400

第一列:linux系统用户名,*代表所有

第二列:软连接/硬链接

第三列:类型,nproc-进程的数量/nofile-文件打开数/core-core文件大小

第四列:数量

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

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

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

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

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