HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   My apache2 processes are out of control! 28 of them now (http://www.howtoforge.com/forums/showthread.php?t=51402)

talkingnews 12th February 2011 01: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
</IfModule>

falko 12th February 2011 11:45

Try
Code:

MaxKeepAliveRequests 1000000
Code:

MaxRequestsPerChild  0

talkingnews 22nd February 2011 17: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 17: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 18:59.

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