看板 java 關於我們 聯絡資訊
※ 引述《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://www.ptt.cc/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
swallowcc: 感謝@@> 我完全忽略開頭的#後面那些文字, 還以為那些是 04/14 08:17
swallowcc: 說明而已, 所以一直在爬中間那些看不懂的地方 orz 04/14 08:18
qrtt1: 緊張的時候,常看漏看東西的 04/14 09:08
qrtt1: 所以,你得研究是記憶體真的不夠,還是 memory leak 唄 04/14 09:18