作者qrtt1 (有些事,有时候。。。)
看板java
标题Re: [问题] hs_err_pid.log 分析
时间Thu Apr 14 07:58:01 2016
※ 引述《swallowcc (罹患重度能年病的燕叔)》之铭言:
: 各位前辈好 ._.
: 最近管理的一台 tomcat 8 常常会喷 hs_err_pid.log 出来...
: 不过看着 log 内容有种不晓得该怎麽解析的无力感 orz
: 不晓得像这种 log 是否有专门的 analyzer 可以用?
: 还是有什麽眉角,可以从中就直接分析原因?
: (或者是有教学文件什麽的,让我自己啃也OK @@)
: 感谢 <(_ _)>
#
# There is
insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 256901120 bytes for committing reserved memory.
# 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 (os_linux.cpp:2627), pid=4158, tid=139817230907136
#
# JRE version: Java(TM) SE Runtime Environment (8.0_66-b17) (build 1.8.0_66-b17)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.66-b17 mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
反正主因就是记忆体不足吧!
--------------- S Y S T E M ---------------
OS:CentOS release 6.7 (Final)
uname:Linux 2.6.32-573.12.1.el6.x86_64 #1 SMP Tue Dec 15 21:19:08 UTC 2015 x86_64
libc:glibc 2.12 NPTL 2.12
rlimit: STACK 10240k, CORE 0k, NPROC 63664, NOFILE 4096, AS infinity
load average:2.54 0.99 0.67
/proc/meminfo:
MemTotal: 16325852 kB
MemFree: 174840 kB
系统里全部 16 GB,剩 17x MB 能用。
就算 JVM 没自爆,那也等着被 kernel oom killer 砍吧 @@
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 111.241.61.203
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/java/M.1460591883.A.E6F.html
※ 编辑: qrtt1 (111.241.61.203), 04/14/2016 08:00:37
※ 编辑: qrtt1 (111.241.61.203), 04/14/2016 08:05:52
※ 编辑: qrtt1 (111.241.61.203), 04/14/2016 08:07:15
1F:推 swallowcc: 感谢@@> 我完全忽略开头的#後面那些文字, 还以为那些是 04/14 08:17
2F:→ swallowcc: 说明而已, 所以一直在爬中间那些看不懂的地方 orz 04/14 08:18
3F:→ qrtt1: 紧张的时候,常看漏看东西的 04/14 09:08
4F:→ qrtt1: 所以,你得研究是记忆体真的不够,还是 memory leak 呗 04/14 09:18