环境:jdk1.8,centos7
1.报错:22691: 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
[root@hy-jar-1 monitor_jar]# /usr/local/java/jdk1.8.0_211/bin/jstack 22691
22691: 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
解决:加上-F参数
[root@hy-jar-1 monitor_jar]# /usr/local/java/jdk1.8.0_211/bin/jstack -F 22691