In Linux the process is showing but the jar which is up by the process showing as deleted ? My doubt is if a jar itself is not there then how can a process shows running ?
Advertisement
Answer
How come with jar deleted pid is live ?
Either java
has read the whole file into memory and doesn’t need it now to execute, or the file is still held open (in that case, only its directory entry is removed yet, and the file itself is deleted after it has been closed). If it is open, you can see that with ls -l /proc/pid/fd
.