Ispconfig 3, Ubuntu 10.10 64 bit vps, 512Mb RAM I believe apache2 i's running prefork. The php is suPHP. I have changed every value below according to multiple guides. I've had keepalive on and off, I've had timeouts from 1 to 6 seconds, I've had start and maxservers from 1 to 10. I've had Maxclients from 10 to 256. And still I am seeing pages of apache processes, the server slows down and down... almost all the RAM eaten. I've looked at the vhost conf files too. How can I stop all these apache processes from starting? It's only a small php/mysql db driven site, no more than 5 or 6 people online at any one time. Here's what I have right now, but as I say, over the last 2 months I've had all combinations possible. Mysql has been tweaked to within an inch of its life so it's not that. The VPS isn't overloaded either. It's just keeping these Apache/php process under control that's causing problems. Timeout 300 KeepAlive On MaxKeepAliveRequests 1000 KeepAliveTimeout 3 <IfModule mpm_prefork_module> StartServers 3 MinSpareServers 5 MaxSpareServers 10 MaxClients 256 MaxRequestsPerChild 10000 </IfModule>
That works a lot better now, thanks. Still have memory problems, so going to post a question about "why prefork?"