在Windows上启动Cassandra时出现致命Java错误



当我从cmd使用cassandra -f启动Cassandra 3.11.6时,我得到错误

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000010014ed4, pid=29376, tid=0x0000000000007aa4
#
# JRE version: Java(TM) SE Runtime Environment (8.0_281-b09) (build 1.8.0_281-b09)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.281-b09 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [sigar-amd64-winnt.dll+0x14ed4]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:UsersMChadhaDocumentsmanuapache-cassandra-3.11.6-for-scalardbbinhs_err_pid29376.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

是什么原因导致了这个错误?

我的Java版本是

java version "1.8.0_281"
Java(TM) SE Runtime Environment (build 1.8.0_281-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.281-b09, mixed mode)

Java问题。我使用的是java 1.8.0_271,却出现了同样的错误。必须降级到1.8.0_251才能正常工作。

您没有提到Windows版本。但是,如果这是中提到的错误,您可以检查Javahttps://bugs.openjdk.java.net/browse/JDK-8182156

或者尝试在Windows环境中启用小型转储。

最新更新