3 ms·
I assume you had a WP caching plugin installed?
by callmeed 18y ago
I assume you had a WP caching plugin installed?
- patio11 18y agoNope. Previously a few of my other PHP sites had problems under load on the same box (GoogleBot, or something identifying itself as GoogleBot, went wild once with 100k requests in a day and the Apache child spawnage caused the machine to swap, starve, and die). I bumped it up to 512 MB ($250 a year extra cheaper than irked users emailing me) and added the following to httpd.conf, on the advice of some Slicehost-related blog post or forum thread or something, can't remember. http://www.pastie.org/410707 http://www.pastie.org/410707 No problems since. (I was watching on top through the night, and while the CPU was spiking up to 25 ~ 50% the memory usage never exceeded 400 MB, and it ended up not using so much as a kilobyte of swap.)
- aristus 18y agoI would make MaxRequestsPerChild nonzero, something like 3000 to 10000. Even Yahoo, which employs the creator of PHP and several Apache committers, restarts their Apache children every 8 hours. Otherwise you are making yourself vulnerable to memory leaks or bugs that might take weeks to manifest. I would also bump up MaxClients. If it's too low you will refuse connections under load and never know it -- there will be no records in your logs.