Tag Archives: jstack

Jstack command execution error: unable to open socket file: target process not responding or hotspot VM not loaded

An error is reported when the jstack command is executed. The error is as follows

Unable to open socket file: target process not responding or HotSpot VM not loaded
The -F option can be used when the target process is not responding

This process can be viewed through PS command

I found an article about jstack command not configured well on the Internet

Switch to the / tmp directory

cd /tmp

There are several directories at the beginning of hsperfdata. Go to the directory to see if there is a process number executed by jstack

After checking, it is found that the process behind jstack is not executed by the root user, and the switch to another user is successful

Later, we found that PS – aux can also see who executed the process, so we don’t have to be so troublesome