jstack命令报错:Unable to open socket file: target process not responding or HotSpot VM not loaded

java | 2020-05-29 17:16:05

jstack命令执行报错,报错如下

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

经过检查发现jstack后面的进程不是在root用户执行的,切换到另一个用户执行成功

后面发现ps -aux或ps -ef也能看出进程是谁执行的

# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 May03 ?        00:00:27 /usr/lib/systemd

UID就是启动进程的用户

登录后即可回复 登录 | 注册
    
相关文章
tomcat启动报错:could not reserve enough space for object heaplinux file命令php eventbuffer write contents of the buffer to a file or socketphp eventbufferevent connect buffer event s file descriptor to given address or unix socketphp eventutil returns numeric file descriptor of a socket or streamphp eio 函数 repositions the offset of the open file associated with the fd argument to the argument offset according to the directive whencephp expect 函数 execute command via bourne shell and open the pty stream to the processphp zlib 函数 close an open gz file pointerphp pdf 函数 open image created with php s image functions not supported php runkit 函数 process a php file importing function and class definitions overwriting where appropriatephp stream 函数 open internet or unix domain socket connectionphp stream 函数 receives data from a socket connected or notphp stream 函数 sends a message to a socket whether it is connected or notphp what makes a phar a phar and not a tar or a zip? ingredients of all phar archives independent of file formatphp what makes a phar a phar and not a tar or a zip? phar manifest file entry definitionphp what makes a phar a phar and not a tar or a zip? phar file formatphp what makes a phar a phar and not a tar or a zip? phar file stubjstack命令报错:Unable to open socket file: target process not responding or HotSpot VM not loadedspark解决OutOfMemoryError: Not enough memory to build and broadcast the table to all worker nodes
关注编程学问公众号