Attaching to a Java Process Fails with "AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded"
(Doc ID 2273738.1)
Last updated on FEBRUARY 07, 2021
Applies to:Java SE JDK and JRE - Version 8 and later
Red Hat Advanced Server
While attempting to use any tools that use the Attach API to attach to a running Java process, such as jmap, jstack, jconsole, jinfo, Java Flight Recorder (JFR), etc, the following error is thrown:
To avoid permissions issues that could result in this error, the tools are run with the same user (UID) and group (GID) as the target JVM. Even so, none of the tools can attach to the target JVM.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document