undera / perfmon-agent

Server metrics fetching agent, based on SIGAR
Apache License 2.0
397 stars 138 forks source link

Solved workaround for "EXCEPTION_ACCESS_VIOLATION" crash related to sigar-amd64-winnt.dll #30

Open ahortua opened 1 year ago

ahortua commented 1 year ago

PerfMon agent works fine to telnet test until you ask "metrics:cpu" or run your script in JMeter it crashes and generate a log file like: _A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESSVIOLATION (0xc0000005) at pc=0x0000000010014ed4, pid=12236, tid=6844 JRE version: Java(TM) SE Runtime Environment (11.0.4+10) (build 11.0.4+10-LTS) Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0.4+10-LTS, mixed mode, tiered, compressed oops, g1 gc, windows-amd64) Problematic frame: C [sigar-amd64-winnt.dll+0x14ed4] ...

A workaround was found in https://stackoverflow.com/questions/59528198/jmeter-perfmon-exception-access-violation Replace the file sigar-amd64-winnt.dll with the one linked here see "Grant"'s comment.

ShockYoungCHN commented 1 year ago

came up with the exact same problem, the solution worked for me. Here is my environment: os: windows11; java version "17" 2021-09-14 LTS Java(TM) SE Runtime Environment (build 17+35-LTS-2724) Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)