JDK6u18在64 bit Linux服务器高负荷下JVM crash分析
SIGSEGV (0xb) at pc=0x00002b77f64d663c, pid=9132, tid=1099491648
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (16.0-b13 mixed mode linux-amd64 )
# Problematic frame:
# V  [libjvm.so+0x62263c]
......
---------------  T H R E A D  ---------------
Current thread (0x0000000044a40000):  GCTaskThread [stack: 0x000000004178e000,0x000000004188f000] [id=9135]
siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x000000000000001d
......
Stack: [0x000000004178e000,0x000000004188f000],  sp=0x000000004188dcf0,  free space=3ff0000000000000018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x62263c]
V  [libjvm.so+0x6230b0]
V  [libjvm.so+0x625672]
V  [libjvm.so+0x365dda]
V  [libjvm.so+0x5da2af]
......
Other Threads:
  0x0000000044a90800 VMThread [stack: 0x0000000040d30000,0x0000000040e31000] [id=9143]
  0x00002aabb802a000 WatcherThread [stack: 0x00000000425eb000,0x00000000426ec000] [id=9150]
=>0x0000000044a40000 (exited) GCTaskThread [stack: 0x000000004178e000,0x000000004188f000] [id=9135]
......
Heap
 PSYoungGen      total 1397056K, used 1396960K [0x00002aab5e0e0000, 0x00002aabb3630000, 0x00002aabb3630000)
  eden space 1396032K, 100% used [0x00002aab5e0e0000,0x00002aabb3430000,0x00002aabb3430000)
  from space 1024K, 90% used [0x00002aabb3530000,0x00002aabb3618000,0x00002aabb3630000)
  to  space 1024K, 90% used [0x00002aabb3430000,0x00002aabb3518000,0x00002aabb3530000)
 PSOldGen        total 2796224K, used 767465K [0x00002aaab3630000, 0x00002aab5e0e0000, 0x00002aab5e0e0000)
  object space 2796224K, 27% used [0x00002aaab3630000,0x00002aaae23aa6d8,0x00002aab5e0e0000)
 PSPermGen      total 21248K, used 21128K [0x00002aaaae230000, 0x00002aaaaf6f0000, 0x00002aaab3630000)
  object space 21248K, 99% used [0x00002aaaae230000,0x00002aaaaf6d2100,0x00002aaaaf6f0000)
exited表面原因为:
    JVMJNI调用时错误退出,退出的线程是垃圾回收线程GCTaskThread,且当时程序使用的新生代堆内存和VM自己使用的永久内存使用率很大,负荷比较高。
经过查,本质原因为:
    JDK6u18 版本bug在高负荷下的发作。
acle/technetwork/java/javase/6u18-142093.html
acle/forums/thread.jspa?threadID=1540042

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。