Problematic frame: C  [sigar-amd64-winnt.dll+0x14ed4]

Kolde發表於2020-09-24

問題:

在win10環境下使用java引入  sigar-1.6.4.jar   包,呼叫sigar提供的介面獲取系統資訊,已經將  sigar-amd64-winnt.dll  放入C:\Windows\System32 目錄下,執行程式報錯如下圖所示:

開啟提示的檔案hs_err_pid11644.log檔案顯示如下:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000010014ed4, pid=9720, tid=0x00000000000010d0
#
# JRE version: Java(TM) SE Runtime Environment (8.0_261-b12) (build 1.8.0_261-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.261-b12 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
#
# 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.
#

原因:

JDK版本 jdk1.8.0_261和sigar-amd64-winnt.dll不匹配,需要降低JDK版本,安裝 jdk1.8.0_241。

注:類似問題都考慮JDK版本不匹配造成的,需要更換JDK版本。

解決:

解除安裝原來安裝的jdk-8u261-windows-x64.exe ,

重新下載安裝jre-8u241-windows-x64.exe

配置  jdk1.8.0_241  為JAVA_HOME,

重啟程式。

參考:

https://sqa.stackexchange.com/questions/41976/error-while-running-jmeter-perfmon

jdk歷史版本下載連結:

https://www.oracle.com/java/technologies/oracle-java-archive-downloads.html

相關文章