httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Farr <>
Subject [users@httpd] runaway apache 1.3.26-0 processes, please help
Date Thu, 21 Apr 2005 18:56:29 GMT
os: Debian (woody)
apache: 1.3.26-0
zope: 2.6

We keep seeing apache processes runaway on some of our servers. The last 
errors I see in the log say 'proxy send body timed out.' We have tried 
adjusting the normal timeouts, keepalives and such. Nothing seems to 
cure the runaway processes. It happens about once a day. Is there 
anything else I should be looking at that could be causing this issue? 
Below is the global config file we use for all our servers. Also note we 
use zope to serve most of our content to apache via proxy pass.

## The One True Config File,
## $Id: httpd.conf,v 1.8 2005/03/04 21:56:04 accounts Exp $

## runtime core,
ServerRoot /etc/apache
AccessConfig /dev/null
ResourceConfig /dev/null
User www-data
Group www-data
ServerTokens Prod
HostnameLookups off
UseCanonicalName on
Timeout 300
MinSpareServers 5
MaxSpareServers 30
StartServers 10
MaxClients 300
# On dedicated sites MaxRequestPerChild should be higher, try 100
MaxRequestsPerChild 10
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 10

# The Debian package of Apache loads every feature as shared modules.
# FreeBSD uses /usr/local/libexec/ rather than /usr/lib/ adjust accordingly.
LoadModule env_module /usr/lib/apache/1.3/
LoadModule config_log_module /usr/lib/apache/1.3/
LoadModule mime_module /usr/lib/apache/1.3/
LoadModule status_module /usr/lib/apache/1.3/
LoadModule autoindex_module /usr/lib/apache/1.3/
LoadModule includes_module /usr/lib/apache/1.3/
LoadModule dir_module /usr/lib/apache/1.3/
LoadModule cgi_module /usr/lib/apache/1.3/
LoadModule alias_module /usr/lib/apache/1.3/
LoadModule rewrite_module /usr/lib/apache/1.3/
LoadModule proxy_module /usr/lib/apache/1.3/
LoadModule access_module /usr/lib/apache/1.3/
LoadModule auth_module /usr/lib/apache/1.3/
LoadModule setenvif_module /usr/lib/apache/1.3/
LoadModule ssl_module /usr/lib/apache/1.3/
LoadModule php4_module /usr/lib/apache/1.3/
LoadModule pcgi2_module /usr/local/lib/apache/1.3/
LoadModule auth_mysql_module /usr/local/lib/apache/1.3/
LoadModule throttle_module /usr/lib/apache/1.3/

## logging, core,
LogLevel notice
ErrorLog /var/log/apache/errors/logpipe
LogFormat "%V %a %l %u %t \"%r\" %>s %b \"%{Referer}i\" 
\"%{User-Agent}i\"" kavi
CustomLog "|/command/setuidgid weblog cronolog 
/var/log/apache/access.%Y%m%d" kavi

## mod_status,
ExtendedStatus on

## mod_ssl,
SSLMutex sem
SSLRandomSeed startup builtin
SSLRandomSeed startup file:/dev/urandom 1024
SSLRandomSeed connect builtin
SSLRandomSeed connect file:/dev/urandom 1024
SSLSessionCache dbm:/var/run/ssl_scache
SSLSessionCacheTimeout 300

## mod_mime,
TypesConfig mime.types
AddType application/x-httpd-php .phtml .php
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
AddType text/html .shtml
AddHandler server-parsed .shtml
AddHandler cgi-script .cgi .pl
DefaultType text/plain
AddEncoding x-compress Z
AddEncoding x-gzip gz

## mod_dir,
DirectoryIndex index.cgi index.php index.html index.shtml

## mod_setenvif,
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "MSIE 4\.0" nokeepalive downgrade-1.0 force-no-vary 
ssl-unclean-shutdown force-response-1.0
BrowserMatch "MSIE [5-6]" ssl-unclean-shutdown
BrowserMatch "chunky cURL" force-response-1.0 downgrade-1.0

## mod_auth_mysql configuration
## contains username and password to bind with which has been
## granted global select privs, this is stupid and dangerous,
## but mod_auth_mysql's poor design leaves us no choice for the
## time being
Include auth_mysql.conf

## global permissions
<Directory />
  Options FollowSymLinks
  AllowOverride None
  Order allow,deny
<Files ".htaccess">
  Order allow,deny

## use an external interface for monitoring
  <Location "/">
   SetHandler server-status
   Order deny,allow

## Define a virtual names host, and redirect everything but the
## server status to
  LogLevel warn
  RewriteEngine On
  RewriteRule /server-status - [L]
  RewriteRule /.* [R]
  <Location "/server-status">
   SetHandler server-status
   Order allow,deny
   Allow from

# Throttle Policy
ThrottleClientIP 100 request 400 30
<Location /throttle-status>
         SetHandler throttle-status
         Order allow,deny
         Allow from


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message