[thelist] Apache burns memory up !
Patrick Berry
pberry at piratehaven.org
Sat Apr 21 10:08:18 CDT 2001
>>> Eric Cestari had the thought that... <<<
> Thanks Daniel !
>
> It is a Pentium III w/256 Mb of ram.
> Traffic is not very big, we had 700 visits yesterday, and it was an all time
> record :)
> but usually we get 200 visits a day.
> The install is the standard 1.3.9 RH rpm for Apache, I think it's DSO all
> the way.
> PHP is 4.0.4pl1 with a whole bunch of modules (imap, gd, Postgres, ... )
> I have persistent connections between PHP and Postgres (7.0.3), and that did
> cause problems (corrected now).
>
> excerpt from httpd.conf :
> MaxKeepAliveRequests 100
> KeepAliveTimeout 15
> MinSpareServers 20
> MaxSpareServers 30
> StartServers 25
> MaxClients 60
> MaxRequestsPerChild 100
>
> Those figures are not adequate for 20Mb processes on a 256 Mb RAM server, I
> guess :)
>
> Cheers,
> Eric
That does seem a little out of control...here is a top listing of my
apache with php4:
PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
24979 pberry 0 0 1872 1872 1796 S 0 0.0 0.7 0:00 httpd
17899 pberry 0 0 2080 2080 1872 S 0 0.0 0.8 0:00 httpd
17900 pberry 0 0 2080 2080 1872 S 0 0.0 0.8 0:00 httpd
17901 pberry 0 0 2100 2100 1884 S 0 0.0 0.8 0:00 httpd
17902 pberry 0 0 2080 2080 1872 S 0 0.0 0.8 0:00 httpd
17903 pberry 0 0 2080 2080 1872 S 0 0.0 0.8 0:00 httpd
20517 pberry 0 0 2044 2044 1872 S 0 0.0 0.7 0:00 httpd
20522 pberry 0 0 2084 2084 1876 S 0 0.0 0.8 0:00 httpd
20523 pberry 0 0 2236 2236 1900 S 0 0.0 0.8 0:00 httpd
20526 pberry 0 0 2084 2084 1876 S 0 0.0 0.8 0:00 httpd
20538 pberry 0 0 2084 2084 1876 S 0 0.0 0.8 0:00 httpd
How much memory is apache sharing between children? RAM is cheap,
have you considered tossing more in ;-)
Maybe you could send a top listing.
<tip>
While IE 5 on the mac supports iFrame, it doesn't support the
contentWindow (IE DOM) or contentDocument (Moz DOM) properties.
</tip>
Pat
--
"WE ARE MIGHTY! AVAST AND HO YE CORPORATE GUI-LUBBERS, WE'LL LASH YOU TO THE
HEAT-SINK OF AN INTELLE PROCESSOR AND SCORCHE YER FLESH TO A CRISPE, AND NO
MAN ALIVE CAN STOP US." -- Cap'n Ajax
More information about the thelist
mailing list