My wordpress blog is running without any problem with following apache prefork setting for months (~4000 DAU):
<IfModule mpm_prefork_module>
StartServers 2
MinSpareServers 5
MaxSpareServers 10
ServerLimit 50
MaxClients 100
MaxRequestsPerChild 3000
</IfModule>
This month, I got 5000 daily-active-user which is not a spike but steadily increasing. Last 3 days, apache starts consuming all memory (1GB Ram - VPS) and server doesn't respond. I tried to change a lot of setting but it still crush randomly.
Here is my recent setting:
<IfModule mpm_prefork_module>
StartServers 2
MinSpareServers 3
MaxSpareServers 6
ServerLimit 100
MaxClients 50
MaxRequestsPerChild 3000
</IfModule>
wordpress supercache plugin and google sitemap plugin are some I'm using. Could anyone kindly give me some hint what to do to stop apache crush? Thanks all in advance!
Apache Version - 2
PHP Version - 5.2
MySQL DB - 5
Wordpress - 2.9