You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Harrell, Roger" <rj...@bechtel.com> on 2004/04/26 07:28:57 UTC

[users@httpd] Apache child process consuming massive RAM

I'm running Apache 2.0 on Red Hat Linux 9. Apache is spawning child
processes that are taking 20 MB of RAM each. This very quickly consumes
all of the RAM on the box and bogs the machine down. Here's the
pertinant info from my httpd.conf. Anyone experience this or can see
anything unusal about the config?

ServerTokens OS 

ServerRoot "/etc/httpd" 
PidFile run/httpd.pid 
Timeout 300 
KeepAlive Off 
MaxKeepAliveRequests 100 
KeepAliveTimeout 15 

<IfModule prefork.c> 
StartServers       8 
MinSpareServers    5 
MaxSpareServers   20 
MaxClients       150 
MaxRequestsPerChild  1000 
</IfModule> 

<IfModule worker.c> 
StartServers         2 
MaxClients         150 
MinSpareThreads     25 
MaxSpareThreads     75 
ThreadsPerChild     25 
MaxRequestsPerChild  0 
</IfModule> 

<IfModule perchild.c> 
NumServers           5 
StartThreads         5 
MinSpareThreads      5 
MaxSpareThreads     10 
MaxThreadsPerChild  20 
MaxRequestsPerChild  0 
</IfModule> 

Listen 80 
Include conf.d/*.conf 

LoadModule access_module modules/mod_access.so 
LoadModule auth_module modules/mod_auth.so 
LoadModule auth_anon_module modules/mod_auth_anon.so 
LoadModule auth_dbm_module modules/mod_auth_dbm.so 
LoadModule auth_digest_module modules/mod_auth_digest.so 
LoadModule include_module modules/mod_include.so 
LoadModule log_config_module modules/mod_log_config.so 
LoadModule env_module modules/mod_env.so 
LoadModule mime_magic_module modules/mod_mime_magic.so 
LoadModule cern_meta_module modules/mod_cern_meta.so 
LoadModule expires_module modules/mod_expires.so 
LoadModule headers_module modules/mod_headers.so 
LoadModule usertrack_module modules/mod_usertrack.so 
LoadModule unique_id_module modules/mod_unique_id.so 
LoadModule setenvif_module modules/mod_setenvif.so 
LoadModule mime_module modules/mod_mime.so 
LoadModule dav_module modules/mod_dav.so 
LoadModule status_module modules/mod_status.so 
LoadModule autoindex_module modules/mod_autoindex.so 
LoadModule asis_module modules/mod_asis.so 
LoadModule info_module modules/mod_info.so 
LoadModule dav_fs_module modules/mod_dav_fs.so 
LoadModule vhost_alias_module modules/mod_vhost_alias.so 
LoadModule negotiation_module modules/mod_negotiation.so 
LoadModule dir_module modules/mod_dir.so 
LoadModule imap_module modules/mod_imap.so 
LoadModule actions_module modules/mod_actions.so 
LoadModule speling_module modules/mod_speling.so 
LoadModule userdir_module modules/mod_userdir.so 
LoadModule alias_module modules/mod_alias.so 
LoadModule rewrite_module modules/mod_rewrite.so 
LoadModule proxy_module modules/mod_proxy.so 
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so 
LoadModule proxy_http_module modules/mod_proxy_http.so 
LoadModule proxy_connect_module modules/mod_proxy_connect.so 

<IfModule prefork.c> 
LoadModule cgi_module modules/mod_cgi.so 
</IfModule> 

<IfModule worker.c> 
LoadModule cgid_module modules/mod_cgid.so 
</IfModule> 

Thanks in advance 
Roger 


Re: [users@httpd] Apache child process consuming massive RAM

Posted by Marty Landman <ML...@face2interface.com>.
At 08:23 AM 4/26/2004, Joshua Slive wrote:

>On Sun, 25 Apr 2004, Harrell, Roger wrote:
> > Include conf.d/*.conf
>
>Well, what is in here?

The one time this happened to me it was a Perl script with an infinite 
loop. It was data dependent and didn't happen in development or staging 
environments but did in production. :(

I caught it using the 'top' command on the 'nix box it was running in.

Marty Landman   Face 2 Interface Inc.   845-679-9387
Web Installed Formmailer: http://face2interface.com/Products/Formal.shtml
FormATable  DB: http://face2interface.com/Products/FormATable.shtml
Make a Website: http://face2interface.com/Home/Demo.shtml


---------------------------------------------------------------------
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


Re: [users@httpd] Apache child process consuming massive RAM

Posted by Joshua Slive <jo...@slive.ca>.
On Sun, 25 Apr 2004, Harrell, Roger wrote:
> Include conf.d/*.conf

Well, what is in here?

Are you running mod_php, mod_perl, or similar?  Have you audited all their
scripts?

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