top shows I have 2 of them,
what can I do to detect and kill them?
If you are looking at top, the first column is the PID (Process ID). Quit out of top, and then you can execute the command:
# kill <PID>
The default kill signal is SIGTERM (15) which will attempt to kill the process cleanly. If it still failes to die off you can issue a SIGKILL(9) to trash the process and really kill it (uncleanly).
Posts: 1,186
Thanks: 60
Thanked 13 Times in 11 Posts
I did not phrase my question good enough: top tells me I have 1 zombie process, I know how to kill it but how do I know which process is the zombie one?
I did not phrase my question good enough: top tells me I have 1 zombie process, I know how to kill it but how do I know which process is the zombie one?
Who is the user running the zombie process? You can also look at:
# ps -auwx | grep <pid>
and perhaps you'll get more info from that output.
Posts: 1,186
Thanks: 60
Thanked 13 Times in 11 Posts
still you did not get my question:
tu run: # ps -auwx | grep <pid>
I need to know the pid of the zombie process but all I know is that when I open top I see in the report on top: 1 zombie process I do not know which one is the zombie process, so I can't know its Pid :-)
Are you refering to a zombie process as a process or thread that has reached deadlock. ie no longer responding? If this is the case then their is no easy way to tell which process is causing the problem. Mostly it is trial and error. This is also extreamly dangerious to do. If you have a production environment and need a way to recover from deadlock there are a few solutions out available. Only problem is that deadlock solutions provide an a extreamly large amount of over head.
Thus, solution is:
personal or development comptuer - restart. If you need to track it you can also check your error logs
development server - look into deadlock software solutions.
Recent comments
1 day 19 hours ago
2 days 4 hours ago
2 days 7 hours ago
2 days 8 hours ago
2 days 10 hours ago
2 days 11 hours ago
2 days 13 hours ago
2 days 14 hours ago
3 days 6 hours ago
3 days 7 hours ago