HELP!! Apache used up all memory(swap) & not share memory to system

HELP!! Apache used up all memory(swap) & not share memory to system

Post by |n¤H » Mon, 25 Oct 1999 04:00:00



Before i use mod_perl to handle SSI is working fine, but the apache now use
up all ram & swap, make the system not stable, and not share the memory to
system, i.e.: each server use up ram themselves, like this:

32622     adm     0      0    31M    19M    19872    S    0.3    8.4  0:00
httpd
32623     adm     0      0    31M    12M    13502    S    0.1    8.4  0:00
httpd

and there are about > 250 server running same time.

Server have 384MB ram, 330MB Swap, Dual Celeron 500, with apache 1.3.9,
suexec, mod_perl, Apache::SSI

server is compiled like this:

for mod_perl
perl Makefile.PL APACHE_SRC=../apache_1.3.9/src \
    DO_HTTPD=1 USE_APACI=1 PERL_MARK_WHERE=1 EVERYTHING=1
PERL_METHOD_HANDLERS=1

then compile apache
./configure --prefix=/usr/local/apache\
 --enable-suexec --suexec-caller=adm --suexec-docroot=/www\
 --add-module=/download/mod_bandwidth.c\
 --activate-module=src/modules/perl/libperl.a

in the httpd.conf, it have about 7000 virtualhost

anyone know whats wrong? anyway to make apache share the ram? and any idea
for so many virtualhost to use mass virtualhost? thx!!

Samuel