Tomcat 因意外错误而崩溃

Tomcat 因意外错误而崩溃

Tomcat 服务器崩溃,Java 虚拟机检测到意外错误。hs_err_pid.log崩溃期间还生成了文件。

hs_err_pid 日志文件捕获“V [libjvm.so+0x256a2f]”作为有问题的框架,当前线程为“CompilerThread0”。

我正在尝试找到这次崩溃的根本原因。以及可以采取哪些措施来防止此类崩溃...

版本

Tomcat : 5.5.23  
JDK : build 1.5.0_18-b02  
OS : RHEL 5.11

Catalina.out 文件中的错误

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x00002b542236ba2f, pid=11943, tid=47641176217920
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_18-b02 mixed mode)
# Problematic frame:
# V  [libjvm.so+0x256a2f]
#
[thread 47641272080704 also had an error]
# An error report file with more information is saved as [thread 47641272080704 also had an error]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

错误日志

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x00002b542236ba2f, pid=11943, tid=47641176217920
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_18-b02 mixed mode)
# Problematic frame:
# V  [libjvm.so+0x256a2f]
#
---------------  T H R E A D  ---------------
Current thread (0x000000005ccb9040):  JavaThread "CompilerThread0" daemon [_thread_in_native, id=11998]
siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x0000000000000000
Registers:
RAX=0x00002b545db4bd60, RBX=0x00002b545de78d10, RCX=0x00002b545db4ba58, RDX=0x00000000000008c1
RSP=0x00002b5453626d80, RBP=0x00002b5453626e00, RSI=0x000000000000000b, RDI=0x0000000000000400
R8 =0x00002b5454ff2100, R9 =0x0000000000000007, R10=0x00002b545cd486c0, R11=0x00002b5422a80020
R12=0x000000000000004a, R13=0x000000000000004a, R14=0x0000000000000000, R15=0x00002b545de83900
RIP=0x00002b542236ba2f, EFL=0x0000000000010206, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00002b5453626d80)
0x00002b5453626d80:   00002b5422981060 00002b5453626dd0
0x00002b5453626d90:   00002b545436d710 0000000000000000
0x00002b5453626da0:   00002b545de83900 00002b545cd48690
0x00002b5453626db0:   0000001c00000004 00002b5454ff2100
0x00002b5453626dc0:   00002b54536272b0 0000006022416196
0x00002b5453626dd0:   00002b545db4bd60 00002b545de83900
0x00002b5453626de0:   00002b545de83900 00002b545db4bd60

答案1

这看起来像是一个 JVM 错误,可能已修复1.5.0_19(参见“热点编译器”错误修复)或更新版本。但可能不是……

您应该考虑升级您的系统,包括 Tomcat 和 Java。JDK 1.5 已经过期十年前

如果这不太容易实现,请尝试升级到最新版本JDK 5.0u22或者JRE 5.0u22

您可以在此处找到 Tomcat 版本及其支持的 Java 版本的有用矩阵:Apache Tomcat 版本

相关内容