LinuxQuestions.org
Help answer threads with 0 replies.
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 03-14-2006, 06:50 PM   #1
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Rep: Reputation: 30
apache2, processes die and do not fork


All-

I have had a sudden problem with apache2, and am not sure why

The problem is, after it runs awhile, the top apache process goes away, and all the others show 1 for the ppid. When this happens i cannot restart it, i have to kill each process then restart it. if i do not do this the server crashes.

below is when it is running correctly, from a ps -efH

Code:
root     29995     1  0 18:46 ?        00:00:00   httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_ACT
root     30002 29995  0 18:46 ?        00:00:00     /usr/bin/perl /usr/sbin/advxsplitlogfile
apache   30003 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30004 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30005 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30006 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30007 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30008 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30009 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30010 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30011 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30012 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30013 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30014 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30015 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30016 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30017 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30018 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30019 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30020 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30021 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_A
apache   30022 29995  0 18:46 ?        00:00:00     httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_S
And this is after it starts messing up

Code:
root     10781     1  0 09:06 ?        00:00:00   /usr/bin/perl /usr/sbin/advxsplitlogfile
apache   10782     1  0 09:06 ?        00:00:21   httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_ACT
apache   10783     1  0 09:06 ?        00:00:21   httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_ACT
apache   10785     1  0 09:06 ?        00:00:21   httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_ACT
apache   10786     1  0 09:06 ?        00:00:24   httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_ACT
apache   10789     1  0 09:06 ?        00:00:25   httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_ACT
apache   10791     1  0 09:06 ?        00:00:27   httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_ACT
apache   10792     1  0 09:06 ?        00:00:30   httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_ACT
apache   10794     1  0 09:06 ?        00:00:21   httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_ACT
apache   10795     1  0 09:06 ?        00:00:19   httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_ACT
apache   10796     1  0 09:06 ?        00:00:19   httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_ACT
apache   10797     1  0 09:06 ?        00:00:23   httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_ACT
apache   10798     1  0 09:06 ?        00:00:21   httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_ACT
apache   10799     1  0 09:06 ?        00:00:25   httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_ACT
apache   10800     1  0 09:06 ?        00:00:26   httpd2 -f /etc/httpd/conf/httpd2.conf -DAPACHE2 -DHAVE_PERL -DHAVE_PHP5 -DHAVE_SSL -DHAVE_ACCESS -DHAVE_ACT
apache   10801     1  0 09:06 ?        00:00:20   httpd2 -f /etc/httpd/conf/ht
All the ppid have gone to "1", anyone have any ideas what causes this or how it can be corrected?
 
Old 03-15-2006, 02:12 PM   #2
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
bumping this once..
 
Old 03-16-2006, 09:43 PM   #3
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
think I found my problem , figured i woud post it.

Code:
[Thu Mar 16 18:30:22 2006] [emerg] (35)Resource deadlock avoided: couldn't grab the accept mutex
[Thu Mar 16 18:35:46 2006] [emerg] (35)Resource deadlock avoided: couldn't grab the accept mutex
[Thu Mar 16 18:38:23 2006] [emerg] (35)Resource deadlock avoided: couldn't grab the accept mutex
was showing up, shortly thereafter it was crashing, randomly.

from a mailer ( http://archives.mandrivalinux.com/co...1/msg00251.php )

Quote:
The problem with "couldn't grab the accept mutex (...) [alert] Child 6865
returned a Fatal error...\nApache
is exiting!" is due to ssl module not being able to write
to /var/cache/httpd/mod_ssl. After chmod-ing this directory writeable Apache
finally started and works as it should!

Hopefully this does it
 
Old 03-18-2006, 03:07 PM   #4
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
Nevermind, still having the problem.

Any ideas are welcome.
 
  


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
Run 4-processes concurrently using fork() ugp Programming 1 02-26-2006 08:49 AM
fork and multiple son processes biiiep Programming 4 05-11-2005 11:00 AM
why there're lots of child processes when fork? iclinux Programming 3 01-18-2005 07:09 AM
defunct processes appearing...and won't die! Axion Linux - Software 1 03-31-2004 11:43 AM
processes that refuse to die... HELP! frieza Linux - Software 2 02-09-2004 09:41 AM

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

All times are GMT -5. The time now is 04:54 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