I am having trouble with my apache configuration. Right now nginx sits in front on apache as a reverse proxy, serving static assets and then passing php requests to apache. Apache is using mod_php. We do have users but the site is growing slowly, so i know for a fact Mysql is not the culprit here. The site is not database heavy it is web service heavy.
The site is slowly growing we will do about 430,000 uniques this month and can have anywhere from 80-230 people on it at a time, but requests per second never really go above 8.
Apache seems to hold onto memory, which after about a week causes the server to crash and reboot is required. The server is a linode 8 core, 8 GB ubuntu 12.04 machine.
This is the current config We use the Prefork module right now:
Timeout 15
KeepAlive Off
MaxKeepAliveRequests 1000
KeepAliveTimeout 5
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 256
MaxRequestsPerChild 500
</IfModule>
HostnameLookups Off
If you need any more information let me know. Would we get less memory usage and better performance moving off the prefork module?