httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Avdushkin>
Subject Re: [users@httpd] Apache Memory Usage,
Date Tue, 20 Nov 2007 14:42:44 GMT
> Does any one have any good tips on makeing apache lean and mean from a 
> memory perspective?
> I am using apaceh 2.2 on FreeBSD 6.2.
> Each one of my deamons is using about 1.8 - 2.5 % of available memory. 
> (1 GB).

Disable any modules you do not use.

If you need PHP, try to use php-fcgi instead of mod_php, this could save 
you a lot of memory.

Strip everything you do not need from VirtualHost entries (they generate 
a lot overhead; on one of my servers, there are ~1000 VirtualHosts & I 
have now 25mb per Apache child on it).

If Apache starts with low memory usage, but grow up after some time -- 
try to reduce MaxRequestsPerChild.

With prefork, try to reduce Min/MaxSpareServers, this would slow things 
a little, but should free some memory.

Also, you could decrease MaxClients to some value, that for sure would 
not put your server out of memory (i.e. it less then 40 in your current 

Sergey Avdushkin.

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