Hi all,
Thanks for your precious tips.
Ghan_04 wrote:
I can't fathom why you are unable to do so, but I will just say that running Wordpress with no caching is a VERY bad idea.
My client runs a store in his site that also have a QA section where most (over 90%) visitors are logged-in users.
hoopycat wrote:
If Linode banned people for randomly and frequently using a lot of CPU, then I'd be totally screwed. Don't sweat that.
Thank you, hoopycat!
Guspaz wrote:
1) Install a PHP object cache. When a PHP script is executed, PHP has to compile the script to bytecode every time it's executed. An object cache will cache the bytecode, saving a bunch of CPU time at the start of every script. This can be a substantial CPU savings, and when set up correctly, has no side-effects.
I tried APC, when we transferred the site to Linode. But, for some reason, we were experiencing some errors, random downtime, etc. It could be due to bad code. I still haven't looked into the code. I only manage the server.
Guspaz wrote:
2) Verify that you're not starving your disk cache or MySQL from memory. What does your MySQL configuration look like? Does it have enough memory to do useful query caching? Does your server have enough free RAM to do proper disk caching?
I haven't looked at any of these.

Guspaz wrote:
3) Is the high CPU usage limited strictly to the PHP and MySQL processes? How have you configured your web server? Is it Apache with mod_php? php-fpm?
We use a simple Nginx => php-fpm server stack that I configured about 6 months back and haven't touched it since then (except for frequent updates).
Guspaz wrote:
It sounds like your server is at least pretty well configured if performance isn't seriously impacted when the CPU maxes out. Don't worry about that, Linode is fine with you doing that. The only time that they ever might step in is if disk IO goes crazy, that's about the only thing you can do yourself on a linode that might impact other customers.
Thanks so much, Guspaz. The disk IO is still well within the limit.
Pothi