LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-25-2008, 01:47 AM   #1
tajamari
Member
 
Registered: Jul 2007
Distribution: Red Hat CentOS Ubuntu FreeBSD OpenSuSe
Posts: 252

Rep: Reputation: 32
defunct processes


I had a server running for 3 years, and no major problems were encoutered since. But last week, I noticed that the site was not up and no email notifications (done via php scripts) were sent. Upon verifying, there were defunct applications of HTTPD, SSHD and SENDMAIL

When I thried to reboot the machine, it showed something like this

[root@bigdipper ~]# reboot
Broadcast message from root (pts/1) (Sat Jun 21 16:22:24 2008):

The system is going down for reboot NOW!

init: timeout opening/writing control channel /dev/initctl
[root@bigdipper ~]#
[root@bigdipper ~]#

Is this a hardware related problem or on the php script that sends email in which at an instance the server cant handle the requests?

Any help please?
 
Old 06-25-2008, 02:08 AM   #2
TedyBear
Member
 
Registered: Jan 2006
Location: Finland
Distribution: Ubuntu
Posts: 51

Rep: Reputation: 15
try

"reboot -f"
 
Old 06-25-2008, 11:22 PM   #3
tajamari
Member
 
Registered: Jul 2007
Distribution: Red Hat CentOS Ubuntu FreeBSD OpenSuSe
Posts: 252

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by TedyBear View Post
try

"reboot -f"
That's what I did. I want to know the cause of these defunct process. Has anybody encountered same incident?
 
Old 06-25-2008, 11:45 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
You need to start by examining the relevant logfiles. Ideally before the reboot, but you may still find some useful info.
 
Old 06-25-2008, 11:55 PM   #5
TedyBear
Member
 
Registered: Jan 2006
Location: Finland
Distribution: Ubuntu
Posts: 51

Rep: Reputation: 15
The following was found on teh man page of init:

Quote:
Diagnostics
If init finds that it is continuously respawning an entry more than 10 times in 2 minutes, it will assume that there is an error in the command string, generate an error message on the system console, and refuse to respawn this entry until either 5 minutes has elapsed or it receives a signal. This prevents it from eating up system resources when someone makes a typographical error in the /etc/inittab file or the program for the entry is removed.

http://linux.die.net/man/5/inittab
 
Old 06-26-2008, 12:24 AM   #6
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
3 years - nice!

It sounds like you either encountered a bug in init, or some other anomaly.

A defunct process (called a zombie) is a process that has exited, but its parent did not cleanup via wait(2). A bug, or some was some other failure in init (bit flip in init's address space?) could cause init not to cleanup, thereby eventually exhausting various limits. A reboot would be the only cure at that point, since init is the master controlling parent process.

Last edited by Mr. C.; 06-26-2008 at 12:26 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron/Sendmail Defunct Processes Schiz0 Ubuntu 2 12-02-2007 07:43 PM
defunct processes in cron bujecas Debian 1 02-07-2006 01:59 PM
defunct processes appearing...and won't die! Axion Linux - Software 1 03-31-2004 11:43 AM
Crond running to many processes <defunct> tpfraz Linux - General 1 01-13-2004 07:03 AM
processes showing defunct jpbarto Linux - Software 2 11-05-2003 10:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:57 PM.

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