niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Apache
Apache overwhelmed, restart fails
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Robert Fox
*nix forums beginner


Joined: 19 Dec 2005
Posts: 4

PostPosted: Tue Jul 18, 2006 3:42 pm    Post subject: Apache overwhelmed, restart fails Reply with quote

Hello-

We've been using Apache 2 here at Notre Dame libraries for several years now, and for the most part, the performance has
been very reliable. However, there have been times during very peak usage periods when the Apache servers will freeze
and essentially stop responding to further requests. We have several CGI applications running under the server that can
be taxing, and sometimes Apache seems to get overwhelmed, and the maximum number of available server spawns are reached.

When this happens, I've tried to restart Apache by first shutting it down and then starting the server again. However,
what usually happens is that the first server process will start, and child processes do not spawn. This renders Apache
useless again, and I'm usually forced to completely re-boot the server machine on which Apache is running in order to
clear RAM and reset the network connections. Then, Apache comes up and everything is fine until the next incident. Here
are some specs on our installation:

Server version: Apache/2.0.54
OS Version: Red Hat EL 3.0 (kernel 2.4.21-4.ELsmp)
Modules loaded: PHP 5, authentication modules, etc.

The CGI applications are mainly Perl based.

I've looked in the Apache logs (both main and error) and there is no indication that the server is failing around the
time that Apache freezes up. It seems odd that I can't stop the Apache servers and restart them, which solves 90% of
these sorts of issues with Apache. Except for administrative purposes, I rarely need to restart Apache, so this isn't a
major issue. But, I would like to know where to look to try and determine what is happening when I'm unable to restart
Apache. It's odd that the first process would start but the child processes won't. Any ideas?

Thank you for your help,

Rob Fox
--
-----------------------------------------------------------------------
Robert Fox Sr. Programmer / Analyst
University Libraries of Notre Dame Phone: (574)631-3353
211 Hesburgh Library Email: rfox2@nd.edu
Notre Dame, IN 46556

"Sufficit tibi gratia mea nam virtus in infirmitate perficitur" - 2 Corinthians 12:9
-----------------------------------------------------------------------

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Joshua Slive
*nix forums Guru


Joined: 07 Feb 2005
Posts: 1647

PostPosted: Tue Jul 18, 2006 6:21 pm    Post subject: Re: Apache overwhelmed, restart fails Reply with quote

On 7/18/06, Robert Fox <rfox2@nd.edu> wrote:
Quote:
Hello-

We've been using Apache 2 here at Notre Dame libraries for several years now, and for the most part, the performance has
been very reliable. However, there have been times during very peak usage periods when the Apache servers will freeze
and essentially stop responding to further requests. We have several CGI applications running under the server that can
be taxing, and sometimes Apache seems to get overwhelmed, and the maximum number of available server spawns are reached.

When this happens, I've tried to restart Apache by first shutting it down and then starting the server again. However,
what usually happens is that the first server process will start, and child processes do not spawn. This renders Apache
useless again, and I'm usually forced to completely re-boot the server machine on which Apache is running in order to
clear RAM and reset the network connections. Then, Apache comes up and everything is fine until the next incident. Here
are some specs on our installation:

Server version: Apache/2.0.54
OS Version: Red Hat EL 3.0 (kernel 2.4.21-4.ELsmp)
Modules loaded: PHP 5, authentication modules, etc.

The CGI applications are mainly Perl based.

I've looked in the Apache logs (both main and error) and there is no indication that the server is failing around the
time that Apache freezes up. It seems odd that I can't stop the Apache servers and restart them, which solves 90% of
these sorts of issues with Apache. Except for administrative purposes, I rarely need to restart Apache, so this isn't a
major issue. But, I would like to know where to look to try and determine what is happening when I'm unable to restart
Apache. It's odd that the first process would start but the child processes won't. Any ideas?

Thank you for your help,

Could be a library linked to php blocking on some resource someplace.
Any other non-standard modules in use?

You might try getting some backtraces of stuck parent and child processes:
http://httpd.apache.org/dev/debugging.html#backtrace

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 6:40 am | All times are GMT
navigation Forum index » Apps » Apache
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts mail delivery to cyrus fails embedded Postfix 0 Mon Mar 03, 2008 2:43 pm
No new posts luxadm remove_device fails on a 280R Gary Mills Solaris 2 Thu Jul 20, 2006 6:29 pm
No new posts freebsd with apache, php and mysql Yves Savoie FreeBSD 5 Wed Jul 19, 2006 11:39 pm
No new posts apache startup woes (Solaris 10) Daphne Tregear Solaris 7 Wed Jul 19, 2006 11:15 am
No new posts Unexpected Behavior in Apache 2.2 / Win XP Charles Michener Apache 1 Tue Jul 18, 2006 11:16 pm

Mortgage | Bad Credit Mortgages | Photography | Car Loan | Debt Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1982s ][ Queries: 16 (0.1111s) ][ GZIP on - Debug on ]