Re: [問題] hs_err_pid.log 分析

作者: qrtt1 (有些事,有時候。。。)   2016-04-14 07:58:01
※ 引述《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
#
反正主因就是記憶體不足吧!
作者: swallowcc (guest)   2016-04-14 08:17:00
感謝@@> 我完全忽略開頭的#後面那些文字, 還以為那些是說明而已, 所以一直在爬中間那些看不懂的地方 orz
作者: qrtt1 (有些事,有時候。。。)   2016-04-14 09:08:00
緊張的時候,常看漏看東西的所以,你得研究是記憶體真的不夠,還是 memory leak 唄

Links booklink

Contact Us: admin [ a t ] ucptt.com