Usually, I use jstack to check if the java process is working normally. While i found, when the /tmp/java_pid<num>
(the num is pid of java process) socket file has been deleted, jstack will not work. like this:
[xxx]$ jstack -l 5509
5509: 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
(PS. I didn't want to use the "-F", there may be other problems)
Is there any way to change the socket file location(not /tmp)? or to generate the socket file again when found not existed? Now what i did is to restart the java process again, a very bad solution.
Thanks!