IllegalArgumentException: Could not open PerfMemory, error 2
Issue
Getting the following error when running jstat
or visualvm
:
c:\>jstat -gc 12345
sun.jvmstat.monitor.MonitorException: 12345 not found
...
Caused by: java.lang.IllegalArgumentException: Could not open PerfMemory, error 2
Environment
- OpenJDK11
- Windows 2019
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.