View Single Post
  #1  
Old 12th February 2011, 02:45
talkingnews talkingnews is offline
Member
 
Join Date: Jan 2011
Posts: 67
Thanks: 15
Thanked 6 Times in 6 Posts
Default My apache2 processes are out of control! 28 of them now

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>
Reply With Quote
Sponsored Links