HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Server Operation (
-   -   My apache2 processes are out of control! 28 of them now (

talkingnews 12th February 2011 02:45

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

falko 12th February 2011 12:45


MaxKeepAliveRequests 1000000

MaxRequestsPerChild  0

talkingnews 22nd February 2011 18:25

That works a lot better now, thanks. Still have memory problems, so going to post a question about "why prefork?"

till 22nd February 2011 18:47

As I explained in your other thread, 512 MB RAM are not enough for the perfect server setup.

All times are GMT +2. The time now is 02:31.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.