|
|
 |
Re: FN-FORUM: Apache eating a lot of memory
date posted 17th January 2008 18:34
On 17 Jan 2008 18:51:39 -0000, Martin Wheatley
[EMAIL REMOVED] wrote:
> We put a new web server live this morning, and through the day monit has
> been reporting rather large memory usage for apache:
> Anyway enough rambling, anyone come across similar problem before?
>
> Martin
>
Looking at the config, if apache is operating in prefork mode
StartServers 10
MinSpareServers 10
MaxSpareServers 15
You could have potentially 25 httpd processes running each taking up
20 meg or so. Have a look with top,you might want to lower the spares.
Check what other stuff is getting loaded by apache in
/etc/httpd/conf.d if that's included in the main httpd.conf.
If you want a lot lower memory use, you could use squid/varnish in
front of apache, and reroute requests for static files to another web
server e.g a light version of apache without php running (will only
use a couple meg per process) or lighttpd/nginx etc
|
 |
|