[root@zdev195 ~]# top -Hp 26177top - 09:20:10 up 19 days, 15:29,  3 users,  load average: 0.00, 0.01, 0.05
Threads:  87 total,   0 running,  87 sleeping,   0 stopped,   0 zombie
%Cpu(s):  4.5 us,  0.0 sy,  0.0 ni, 95.5 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  4048724 total,   338052 free,  2633728 used,  1076944 buff/cache
KiB Swap:        0 total,        0 free,        0 used.  1334710 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
26250 root      20   0 6019268 1.222g  14380 S 15.7 31.7  38:57.37 java
26187 root      20   0 6019268 1.222g  14380 S  1.3 31.7   0:46.53 java
26200 root      20   0 6019268 1.222g  14380 S  0.7 31.7   1:37.69 java
26183 root      20   0 6019268 1.222g  14380 S  0.3 31.7   0:35.03 java
26191 root      20   0 6019268 1.222g  14380 S  0.3 31.7   0:18.85 java
26177 root      20   0 6019268 1.222g  14380 S  0.0 31.7   0:00.00 java
26178 root      20   0 6019268 1.222g  14380 S  0.0 31.7   0:14.69 java
26179 root      20   0 6019268 1.222g  14380 S  0.0 31.7   0:13.25 java
26180 root      20   0 6019268 1.222g  14380 S  0.0 31.7   0:13.13 java
[root@zdev195 ~]# jstack 26250
26250: 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

解决方法:用 printf "%x" pID 转16 进制 就可以了,printf "%x"  26250  结果是:668a

执行:jstack  668a  

更多推荐

Unable to open socket file: target process not responding or HotSpot VM not load