可以帮忙吗,
我们的生产服务器突然开始崩溃,我研究了很多但没有找到解决方案,除了有人建议升级 java,但我们已经打了最新的补丁 (java 6_71)
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00002b5b4dc9c2ba, pid=1278, tid=47671325686080
#
# JRE version: 6.0_71-b12
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.71-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libcknfast.so+0x10f2ba] long double+0x11a
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x00000000590ea800): JavaThread "http-0.0.0.0-8090-2" daemon [_thread_in_native, id=11189, stack(0x00002b5b585ef000,0x00002b5b586f0000)]
siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x00000000000001a1
最佳答案
如果不能准确了解问题是什么,请考虑以下因素来确定问题的根本原因和解决方案。
错误信息其实说明了很多:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
有问题的框架是:
# Problematic frame:
# C [libcknfast.so+0x10f2ba] long double+0x11a
“[A]ll of a sudden starts crashing”结合此错误信息表明还有其他可能性:
- 更改服务器上与 PKCS11 库交互的 Java 代码 (
libcknfast.so
)。 - PKCS11 库 (
libcknfast.so
) 本身的更改。
基本上,请考虑您的团队是否部署了更新的 Java 代码、更新的 PKCS11 库、JBoss 更新或其他更新或配置更改,这些更新或配置更改在问题出现之前依赖于它们。
还有many SO questions & answers related to “The crash happened outside the Java Virtual Machine in native code.” - 目前超过 250 个 - 当您考虑在问题发生之前对生产服务器进行可能的更改时,这可能有助于做出特定的假设。
One that caught my attention特别是简单地将一个额外的 null
传递给 native 函数(即在此类错误的根源处进行潜在代码更改的示例); another that caught my attention归结为 JVM 内存参数(即此类问题的核心可能配置更改的示例)。
关于java - Java 运行时环境 : 检测到 fatal error ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23706508/