-1

I am running an instance of Wordpress on an Ubuntu 10.04 VMWare server. If I hold F5 or CMD+R on a page or post, both CPU's on the server will climb to 100%. There will be plenty of free RAM left, but the CPU's will stay at 100% until all the requests have been taken care of. Depending on how long I hold F5, it can take anywhere from a few seconds to process up to a few minutes.

I have disabled persistent connections in MySQL, set the MaxClients section of Apache via a recommended calculation, and disabled all unnecessary plugins within the Wordpress install, yet it still happens (albeit, not nearly as bad as before). Is there anything else I can modify to disallow this from happening?

Thank you!

3
  • Not really...the server's going to process as quickly as possible no matter what.
    – Nathan C
    May 10, 2014 at 16:38
  • 2
    You're basically benchmarking your server in the most crude way imaginable. (Actually, your imagination is better than mine. It's never occurred to me to just hold F5.) You should check out Apache ab or another tool that'll let you simulate more realistic use cases and emit actual data. If you decide you need to make changes to get better perf, you'll be able to measure the effects of your attempts.
    – user6803
    May 10, 2014 at 18:02
  • 1
    One our users discovered this "benchmark" :)
    – user671460
    May 10, 2014 at 20:17

1 Answer 1

1

This is likely caused by PHP processing your scripts. This can be optimized with the use of caching. This can be done with help of wordpress plugins. Some popular ones:

You can find comparison of different plugins here: http://www.tutorial9.net/tutorials/web-tutorials/wordpress-caching-whats-the-best-caching-plugin/

If you also configure Varnish this can give even better results.

More information:

Not the answer you're looking for? Browse other questions tagged .