Hi,
My process is visible in 'ps' command but actually it is not working or it got hanged. This process is not generating any log. Now How can I know that my process got hanged.
Please help.
Hi,
My process is visible in 'ps' command but actually it is not working or it got hanged. This process is not generating any log. Now How can I know that my process got hanged.
Please help.
Depends on the OS. If Solaris use truss -p <pid> -o /tmp/truss.out and see what the process is up to, if nothing then kill it.
You can also check if its a zombie process.When a process dies, it becomes a zombie process. Normally, the parent performs a wait() and cleans up the PID. Sometimes, the parent receives too many SIGCHLD signals at once, but can only handle one at a time. It is possible to resend the signal on behalf of the child via kill -18 PPID. Killing the parent or rebooting will also clean up zombies. The correct answer is to fix the buggy parent code that failed to perform the wait() properly. Aside from their inherent sloppiness, the only problem with zombies is that they take up a place in the process table.