After tweaking Apache2 for a long time, I finally gave up on it. I can avoid OOM errors but there are still consistent performance issues.
I switched to nginx.
The performance difference is day and night. Not only my wordpress site becomes more responsive, but also I have not seen any OOM errors. The Swap IO is the best thing I saw improved. The system barely swaps now.
My suggestion is to try Nginx.
Max
gavinr wrote:
Haha I agree - I have reduced my MaxClients to 20 and reduced KeepActiveTimeout to 2, which has improved my OOM problems. While reading through all the discussions on performance, though, I've taken an interest in making my box even better, and since I'm running nothing but WordPress instances, it sounds like APC is the way to go. Agree/disagree?
I also agree that the OOM MaxClients issue should be written about in the Linode docs -- it's probably one of the major issues that all Linode n00bs have.