Optimize WordPress to Avoid CPU or Memory Hit Limit

When you have a WordPress website, there are a few things you should consider in order to avoid CPU or Memory Hit limits on shared hosting. Optimization is necessary because WordPress is a cms with a million users and many people take the opportunity to exploit it.


1. Remove all unwanted plugins.
Sometimes users keep old plugins by deactivating them which process can cause issues on CPU/Virtual Memory usage or utilization.


2. Update the plugin to the latest version available.

The plugins involved will require updates to fix their bugs or any issues which may cause further complications to the plugins themselves which may cause other related issues mostly on CPU/Virtual Memory usage.


3. Optimize the table database routine.
To keep things running smoothly, you need to log into PhpMyAdmin regularly and optimize the database tables. Unoptimized data tables can overload the server. What's more, it also uses more CPU to read unoptimized data tables. In addition to data table optimization, you can also delete spam/unapproved data.


4. Theme usage and compatibility.
This is the most common reason or cause on the CPU/Virtual Memory limit hit issue. Before proceeding to install a theme, it is best to check its compatibility and requirements as usually some fancy themes require more resources to operate normally.


5. WordPress upgrades and caching.

Are you still stuck with an older version of WordPress? Well, if that's the case then it's high time you upgrade to the advanced and latest version. Most of us ignore the idea of upgrading wordpress just because it is working fine. Updates help because newer versions are better in terms of security and optimization.
You can also install a wordpress caching program. Caching archives every web page on your site. This lowers the server load as there is no need to send multiple queries to the database to generate multiple pages.


6. Reduce the use of widgets.
On certain WordPress runs by users may contain some unnecessary widgets that usually lead to complications that require more usage on CPU/Virtual Memory to operate.


7. Drop the PHP or Database call.

PHP scripts and database calls also consume a lot of CPU resources. Caching your site helps but certain database/PHP calls are unavoidable. Hence, you should read the plugin documentation carefully and disable unnecessary options.

 
8. Lower the load on the index.php file.
During peak hours, your homepage can create a load on your server during peak hours. To lower this load, make sure to simplify your homepage. Try to lower the number of posts on your homepage and remove unwanted files, links, and high-resolution images. It would be best if you choose a CDN service like Cloudfront


9. Disable WP-Cron.
Disable WP-Cron or change scheduled tasks to run every hour. This will greatly reduce your CPU usage. WP-Cron manages all your scheduled events so it is constantly active on many sites when it is not needed.


10. Avoid plugins that use excessive CPU load.
These are often backup and security. These functions are best offered by quality host providers who have integrated solutions.


For detailed implementation (technical), if you are still confused, you can directly contact our support at email support@exabytes.co.id or livechat at www.exabytes.co.id.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.