How to Fix Your High WordPress CPU Usage Problem

If high WordPress CPU usage problems are driving you insane, this post will help you out. If your site is using too many resources, it’s probably making your site run slow for your visitors and could be affecting your rankings. Not to mention the fact that you may be getting warnings from your hosting provider or they may have even suddenly shut you down without warning.

Note: HostGoi handles continuous high resource usage (No, we won’t shut your site down all of a sudden because your site gets a surge of traffic and resource usage goes through the roof).

So here we go, here are some of the first things you should look at and consider if you’re having constant problems with resource usage or a slow loading site period.

How to fix CPU problems in WordPress

Update WordPress
If you’re not using the latest version of WordPress update now. Make sure you backup your site first!

Update Plugins
Updating your WordPress plugins to the latest versions can often reduce high CPU usage. If you’re running an old version take a moment to update now.

Avoid beta versions of plugins
Whilst it’s cool to be at the cutting-edge, only use stable versions of WordPress plugins. Sometimes early release versions (also known as alpha or beta) can have bugs in the code which can cause CPU spikes.

Install a caching plugin
Caching plugins such as W3 Total Cache and WP Super Cache can dramatically reduce CPU load by caching static copies of your pages on your web space. Static files use less CPU and memory. Keeping you within your shared-hosting limits.

If you’re already running a caching plugin, but still experience high CPU loads check your caching plugin is using the optimal settings by plugin developer.

Disable WP-Cron
WP-Cron manages all the scheduled events in your WordPress site. WP-Cron is a very common cause of high CPU loads as it is called every time someone visits your website. Disabling WP-Cron and replacing with a real cron job can drastically reduce CPU-load.

Only use plugins you really need
Do you really need that plugin that constantly checks for broken links? – The more WordPress plugins you have installed, the longer your site will take to load. Deactivate and delete any plugin that you don’t need. Aim for just a handful of plugins. This will speed up your site and keep your visitors happy.

If you’ve disabled plugins you don’t need, and still have high CPU usage you’ll need to try debugging each plugin to see if it’s the cause of the CPU spike. First make sure you’ve taken a backup of your entire WordPress site (files and database). Now try disabling each plugin one by one until the CPU load has been resolved. Once you’ve found the faulty plugin you should hopefully be able to reenable the others without seeing the CPU problems.

Avoid resource-hungry plugins
If using WooCommerce, or similar resource-hungry plugins, make sure your web hosting has sufficient resources.

If you’re running CPU and Memory intensive plugins on a standard shared-hosting, or budget VPS hosting you may find your site performs badly due to insufficient server resources. Symptoms include slow loading pages, database errors and increased visitor abandonment.

Avoid buggy WordPress Themes
A badly written WordPress Theme or one written with demanding features such as server-side image resizing can be CPU intensive. To rule out problems with your WordPress theme try the following:

  • Check error logs for problems. Login to cPanel and check the Error logs for errors.
  • Contact the theme developer and ask if there’s any known issues.
  • Disable any dynamic features built into the theme such as thumbnail resizing. Some WordPress themes have their own image resizing modules which can cause high CPU usage. If possible we recommend disabling them in favour of using the more efficient image resizing built into the WordPress core.

Ask the WordPress Community for help
Try searching WordPress Forums for answers. If there’s a known problem with a plugin there’s a good chance someone will have provided a solution. For example searching yarrp cpu has lot’s of hits.

Use PHP 7
Switching to PHP 7.3 can dramatically speed up your WordPress website, reducing loading time and freeing up CPU and memory. All HostGoi web hosting packages include PHP 7.3 pre-installed and ready to go at time of setup. Switching to PHP 7.3 using cPanel provided with your HostGoi service is easy and quick. To learn how to upgrade to PHP 7.3 see our dedicated help guide: How-to enable PHP 7. We recommend testing a staging version of your website with PHP 7.3 before changing the production version.

Increase PHP Memory Limit
Occasionally increasing the amount of memory available to your WordPress website can help fix high CPU errors in WordPress. We recommend increasing your PHP memory to 256MB or more. Check your web hosting package for your current PHP quota.

Enable Cloudflare CDN
CloudFlare® CDN can improve the performance and security of your WordPress website by automatically caching your websites static files across a global network of custom-built, super-modern data centres. If your site is hosted on our web Hosting or Managed Cloud services with cPanel your can enable HostGoi CDN through your cPanel control panel.

Avoid plugins that cause high-CPU load
Over the years HostGoi customers have reported high-CPU load problems with the WordPress Plugins below.

(Alternative plugin shown in brackets)

If you’re using any of the plugins above we recommend checking you’re using the latest version of the plugin. If an update isn’t available we recommend disabling the problem plugin, switching to an alternative plugin or try using the built-in WordPress features. For example, WordPress has incredibly good SEO features built-in so you may not need an extra SEO plugin.

This may seem like a lot to do, but really… if you do any one or two of the above, you’ll probably see better performance for your site. If you do them all, well, you’ve probably went and outdone a good chunk of your competitors. If you’re still having issues then it’s probably time to talk to your host, as they should be able to help figure out what’s going on.

What’s the one thing you’ve done that had the biggest affect on increasing your site’s performance?

If you’ve found this helpful, please share! Or leave a comment here if there’s something in particular we didn’t cover that you’d like to see.

Was this helpful?

1 / 0