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_ACCESS_VIOLATION (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.