Reducing CPU usage caused by WordPress
There are occassions when the server may get a lot of requests. This is normally due to a client having more than 2 WordPress based websites running off one shared hosting account.This happens when the database server gets a lot of requests, which increases the CPU usage of your account and may get it suspended.Many website hosting companies give a “fair” CPU share for the accounts that are hosted with them; but sometimes you may be required to make a few “tweaks”.Here is how you can reduce the CPU usage generated by your WordPress website:
- Always upgrade your WordPress to the latest version released. Every update always contains bug fixes and improvements.
- Update all your plugins to the latest version released. The plugin updates also usually bring new bug fixes.
- Update the themes used in your blog. Often the update contains optimizations that may improve the performance too.
- Have you noticed how many of the plugins you really use? If you really like WordPress and have 30-40 plugins installed, try cleaning those that haven’t been used recently and keep them between 10 and 15. Try to clear the unnecessary plugins – look for a feature in a plugin that is already built in your WordPress version. This is not an easy task and requires a lot of research but it will pay off. Also note that you can disable some plugins and use them only when needed, for example you don’t need to activate the theme preview plugin if you are not going to change the current theme.
- Reduce PHP/MySQL database requests. Usually the high CPU usage is caused by PHP processes and database requests. Try WP Super Cache for two or three weeks – sometimes it helps (http://wordpress.org/extend/plugins/wp-super-cache/). Also, some plugins allow you to set an option to write a log or not (like spam comments caught, etc.). Disable the logs – this improves the performance significantly.
- Reduce the Widgets used. Widgets look great, but often cause high CPU usage, if they”re a lot. Try turning certain widgets off for a few days and monitor the CPU usage (the Live Stats > Load Stats section of your Web Hosting Control Panel).
You've added this content to your favorites.
Post your comment
Load More