Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Redhat / Fedora Linux Help
Reload this Page Process not getting killed
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Redhat / Fedora Linux Help Help and discussion related to Redhat and Fedora Linux.

Reply
 
Thread Tools Display Modes
Old 06-30-2008   #1 (permalink)
mohitanchlia
Just Joined!
 
Join Date: Jun 2008
Posts: 17
Process not getting killed

I see a process running from 2 days. When I try to kill -9 it returns with no error but that process still keeps showing in top command.

When I do lsof I see somehting like:

afaconv.l 5813 root txt REG 104,2 11396935 20021557 /home/afa_build/work/AFA/main/dist/deploy/jboss/server/afa/deploy/afa/afa-vert.rar/bin/afaconv.linux32 (deleted)
afaconv.l 5813 root 0r FIFO 0,7 2523565 pipe
afaconv.l 5813 root 1w FIFO 0,7 2523566 pipe
afaconv.l 5813 root 2w FIFO 0,7 2523567 pipe
afaconv.l 5813 root 3r REG 104,2 151307 21151952 /home/afa_build/work/AFA/main/dist/deploy/jboss/server/afa/deploy/afa/afa-vert.rar/form/wio03.1pe (deleted)

I think it's in uninterruptible state but sounds like a very bad thing if it happens in our production servers. Any suggestions of what I should do?
mohitanchlia is offline   Reply With Quote
Old 07-01-2008   #2 (permalink)
khafa
Linux Enthusiast
 
khafa's Avatar
 
Join Date: Apr 2008
Location: Tokyo, Japan
Posts: 719
what is the process you want to kill and how does it show in top?
maybe its a zombie
__________________
Linux and me it's a love story
khafa is offline   Reply With Quote
Old 07-01-2008   #3 (permalink)
kurianthayil
Just Joined!
 
Join Date: Jul 2007
Posts: 62
Hi,

Who is its parent process?

--Kurian.
kurianthayil is offline   Reply With Quote
Old 07-01-2008   #4 (permalink)
Thrillhouse
Linux Engineer
 
Thrillhouse's Avatar
 
Join Date: Jun 2006
Location: Arlington, VA, USA
Posts: 1,216
Quote:
Originally Posted by kurianthayil View Post
Who is its parent process?
I think Kurian is on the right track here. It's entirely possible that the parent process re-spawns the one you're trying to kill if it sees it go down. If that's the case, you'll have to kill the parent process.
Thrillhouse is offline   Reply With Quote
Old 07-01-2008   #5 (permalink)
mohitanchlia
Just Joined!
 
Join Date: Jun 2008
Posts: 17
ps command

As I mentioned that process has been running from 2 days. top output shows that. But, when I do "ps" it doesn't come up in the list.
mohitanchlia is offline   Reply With Quote
Old 07-01-2008   #6 (permalink)
Thrillhouse
Linux Engineer
 
Thrillhouse's Avatar
 
Join Date: Jun 2006
Location: Arlington, VA, USA
Posts: 1,216
A standard ps (with no parameters) will only show processes started or running for your currently logged in user. To show all processes (including kernel routines) use ps -Af. To show most system processes (not including kernel processes) use ps -ef.
Thrillhouse is offline   Reply With Quote
Old 07-01-2008   #7 (permalink)
kurianthayil
Just Joined!
 
Join Date: Jul 2007
Posts: 62
Hi,

Quote:
To show most system processes (not including kernel processes) use ps -ef.
As Thrillhouse has said use ps with -ef option. PID could be obtained from the top command and then use ps -ef to find out its details.

#ps -ef |grep <processid from top>

--Kurian.
kurianthayil is offline   Reply With Quote
Old 07-01-2008   #8 (permalink)
mohitanchlia
Just Joined!
 
Join Date: Jun 2008
Posts: 17
Angry ps

I have already tried the following:

top and then kill -9 <pid> # from top
ps -ef|grep "<pid>"
ps -ef|grep "<process name"

Since this program is not Kernel routine it will not appear in ps -Af.

So going back to my real question. Why is kill -9 not able to kill the process that appears in top. The same process doesn't appear in ps -ef or ps -eaf or ps -Af
mohitanchlia is offline   Reply With Quote
Old 07-01-2008   #9 (permalink)
kurianthayil
Just Joined!
 
Join Date: Jul 2007
Posts: 62
Hi,

Were you able to trace its parent process??? The child process would be re-spawned by the parent so if the parent is not killed it will still spawn child even if you kill the child. Suppose if 6750 is the PID that's making problem (Child) and If you need to find its parent, do the command.

Code:
#ps -ef |grep 6750
kurianmt  6750  6749  0 06:34 ?        00:00:00 /bin/sh /opt/glib2.16/firefox3/firefox
kurianmt  6857  6790  0 06:36 pts/0    00:00:00 grep 6750
The parent of the child process 6750, is 6749. So killing the PID 6749 will kill its child too. You will have to trace like that. Make sure you won't kill PID 1. Hope you are aware of that.

--Kurian.
kurianthayil is offline   Reply With Quote
Old 07-01-2008   #10 (permalink)
mohitanchlia
Just Joined!
 
Join Date: Jun 2008
Posts: 17
ps

That's not the issue. There is no parent process trying to spawn child process. As I mentioned earlier, this process has entered in a state that doesn't appear in ps but is seen in top. Which means that it's not getting respawned because the PID in top output is same. Also I already mentioned that this process is running over 2 days, as reported by top. So it can't be a parent re-spawning child. Does somebody else has any more information about why process would enter such a state?
mohitanchlia is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 02:51 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0