Kill a process!!!!!

Posted on 2000-01-30
Medium Priority
Last Modified: 2010-04-21
How do i kill kill process whose status is <defunct> under SINIX.
I tried the kill command and i get the messages which says
"no such process". I used the process ID  with the kill command.I have
the root access and even as the "super user" i can't get rid of those
processes.This processes (<defunct>) eventuallly lead to a case where i
get the message ".profile can't fork...too many processes started" when
i try to start an xterm session.Even rlogin fails---> gives the same message
as stated above.


Thank you in advance.
Question by:onalenna
  • 2

Expert Comment

ID: 2442901
It has been my experience on HP Unix and SCO Unix that the kill command must be associated with a -9 then the PID.  You might want to check the man page on kill for your flavor of unix and see what it has for a unconditional kill of a PID #.  Also, I might suggest that you peform a "ps -ef | more" a trace the PID that you are trying to kill and see what user or daemon started that original process.

I wish I had more advise for you.  But I had the same problem on HP9000 and found that the -9 options "kill -9 23434" was the only way.


Accepted Solution

s_franklin earned 70 total points
ID: 2443361
I do not think that you can kill defunct/zombie processes. They usually stick around becaise a child has been spawned by a parent but not cleaned up properly. This typically happens when the forked child has exited but the parent has not properly cleaned them up. Although there is no one answer on killing these for a given *NIX system, you can frequently get rid of these by killing the _parent_ process, rather than the child. Better yet, you might want to figure out why the parent process is not cleaning things up properly and rectify your situation properly.

This is much better described in the unix programming FAQ:

http://www.faqs.org/faqs/unix-faq/programmer/faq/ (question 1.6)

http://www.faqs.org/faqs/unix-faq/faq/part3/ (question 3.13)


Author Comment

ID: 2455502
This is happening on a 'live' system where everything has to be up and running all the time.So killing the parent will probably stop the system and that is not allowed.Kill -9 PID does'nt work.

Expert Comment

ID: 2461081
You should be able to check the parent process associated with those zombies using 'ps'. Have you done this?


p.s. No need to rush to accept an answer if you're not happy with it. I'd rather spend a few extra steps and help you through your problem than get a 'D' :)

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question