I am having Apache and memory issues on my Linode 512, causing server to get high load and become unresponsive.
I am using APC + Apache 2 + PHP plus cloudflare service.
Everything works fine, server have monit on it, and have to restart server it load gets over 5 in 1 min load. Pingdom is checking the apache status to be sure server is up. Magic happens, everything gets messed up like, load increase to 70, %90 cpu is idle, and swap usage is %99.9, so basicly server gets out of memory.
Apache throws error:
Quote:
[error] server reached MaxClients setting, consider raising the MaxClients setting
[warn] child process 3589 still did not exit, sending a SIGTERM
[Thu Jul 14 02:16:47 2011] [warn] child process 3592 still did not exit, sending a SIGTERM
[Thu Jul 14 02:16:47 2011] [warn] child process 3598 still did not exit, sending a SIGTERM
[Thu Jul 14 02:16:47 2011] [warn] child process 3574 still did not exit, sending a SIGTERM
and i have to reboot linode. There is not much active site on server, mainly a wordpress site, but not active visitors at same time. Cloudflare is blocking most of the bots i hope.
My apache settings are :
Code:
Timeout 20
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule mpm_prefork_module>
StartServers 1
MinSpareServers 1
MaxSpareServers 3
ServerLimit 100
MaxClients 100
MaxRequestsPerChild 4000
</IfModule>
I am using prefork, should i switch that?
Just tell me if you need to have a look at any other .conf file.
I would be glad if you can guide me with some apache conf for my linode 512
my swap is : 512 mb