LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-31-2011, 12:36 PM   #1
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Rep: Reputation: 41
Kill a zombie process - which process is the parent that I should kill?


I need to kill this zombie process without rebooting or logging out (or killing X):

$ ps u p 17478
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
1000 17478 0.0 0.0 0 0 ? Zs Dec22 0:01 [ssh] <defunct>

Which process is the parent that I should try to kill?
1681 17314 17314 17314 tty7 17314 Ss+ 0 150:26 \_ /usr/bin/X :0 -auth
1681 17428 17428 17428 ? -1 Ssl 1000 0:04 \_ /usr/bin/gnome-sess
17428 17478 17478 17478 ? -1 Zs 1000 0:01 \_ [ssh] <defunct>

It looks like the parent might be something I can't kill... but I'm not 100% sure what I'm looking at.

$ ps u p 1681
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1681 0.0 0.0 189796 2660 ? Ssl Dec22 0:00 lightdm

$ ps u p 17314
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 17314 1.2 1.6 392452 267228 tty7 Ss+ Dec22 150:37 /usr/bin/X :0 -
 
Old 12-31-2011, 01:16 PM   #2
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
I am not sure but try killing 17478. The rest of the processes are by root so you cannot kill them anyway . You should have top installed - try running that it is more descriptive than ps. Personally I use htop for situations like these. Also try 'pkill ssh' this can be used to kill a process by name. To get more information on a process you can also use lsof or fuser.
Hope this helps.
 
Old 12-31-2011, 01:18 PM   #3
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by honeybadger View Post
I am not sure but try killing 17478. The rest of the processes are by root so you cannot kill them anyway . You should have top installed - try running that it is more descriptive than ps. Personally I use htop for situations like these. Also try 'pkill ssh' this can be used to kill a process by name. To get more information on a process you can also use lsof or fuser.
Hope this helps.
I already tried all of that. I can't kill 17478 because it is a zombie. I also tried killing it as root user, but that didn't work either.
 
Old 12-31-2011, 02:44 PM   #4
flamelord
Member
 
Registered: Jun 2011
Distribution: Arch Linux
Posts: 151

Rep: Reputation: 34
have you tried using the -9 option?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a child process kill the parent process ? sree_ec Programming 8 11-20-2010 05:37 AM
kill zombie process qwertyjjj Linux - Newbie 3 08-07-2010 10:09 PM
bash `kill`: process 'B' silently dies; but process 'A' = `kill` spews back debris! GrapefruiTgirl Programming 9 06-23-2009 09:42 AM
how to kill zombie process bharatlalgupta Red Hat 1 06-18-2009 10:17 AM
how to kill zombie process mokku Linux - Server 5 10-25-2007 09:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration