Help Reducing High Memory Usage

Posted in wrong section before

I have a dual 2.4 Xeon with 2 GB ECC memory on a dedicated server and the memory keeps getting used up. Currenly I run www.oilfight.com which is mysql intensive (pconnect enabled) and www.backfox.com and www.atunnel.com which are proxies which are cgi proxies using perl (I enabled mod_perl on them). During peak and semi-peak times the server goes out of memory in 10-30 minutes and swap starts piling up until the server just gets too slow.

I have configured the server the best i can with my knowledge but to be honest my knowledge is all internet learned by reading tutorials that usually aren't very helpful in my situation.

Here is a copy of whats important on my httpd.conf file. Is there anything I can remove/add/change to reduce memory usage or make processes close faster. Thanks.

Timeout 10
KeepAlive On
MaxKeepAliveRequests 75
KeepAliveTimeout 1
MinSpareServers 20
MaxSpareServers 64
StartServers 75
MaxClients 300
MaxRequestsPerChild 65


LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule expires_module libexec/mod_expires.so
LoadModule php4_module libexec/libphp4.so
LoadModule bytes_log_module libexec/mod_log_bytes.so
#LoadModule perl_module libexec/libperl.so
LoadModule bwlimited_module libexec/mod_bwlimited.so
LoadModule auth_passthrough_module libexec/mod_auth_passthrough.so
LoadModule evasive_module libexec/mod_evasive.so

ClearModuleList
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_expires.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine SSL>
AddModule mod_ssl.c
</IfDefine>
AddModule mod_frontpage.c
AddModule mod_php4.c
AddModule mod_log_bytes.c
AddModule mod_perl.c
AddModule mod_bwlimited.c
AddModule mod_auth_passthrough.c
AddModule mod_evasive.c

<Files *.mpl>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader Off
Options ExecCGI
</Files>

<IfModule mod_evasive.c>
DOSHashTableSize 3097
DOSPageCount 5
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 600
</IfModule>

 

 

 

 

Top