What should I do if the CPU and memory usage of the WordPress website is too high?

WordPressWhat should I do if the CPU and memory usage of the website is too high?

1) Check cron timed tasks

As long as the CPU and MEMORY of your WordPress site are overloaded, you must install and use the WP Crontrol plugin.

Check the scheduled tasks in "Tools" → "WP-Cron Events". Are there any programs in the "now" state?Or a plugin issue generating redundant scheduled tasks?This is the culprit that causes memory consumption!

WP Control

CRON timed task: inpsyde_phone-home_checkin-now sheet 1

If there are too many redundant and identical cron scheduled tasks, you must use the wp-cron-cleaner plugin to delete the scheduled tasks in batches.

wp-cron-cleaner

2) Delete redundant database tables

For example, I found through the WP Crontrol plugin, use Clean Options to delete the data table of inpsyde-phone-consent-given-BackWPup.

  • CleanOptions
    Gives a list of potentially redundant leftover database tables, and provides links to Google related content, which is helpful for understanding non-descriptive names (some files will have the prefix of the relevant plugin, some don't, it's hard to tell from the name know which plugin left the content).After selecting, you can view the content of the file to prevent accidental deletion.
    https://WordPress.org/plugins/clean-options/

3) CheckWordPress pluginIs the log path wrong?

a lot ofnew mediaAfter people move the website, the CPU and MEMORY usage is always too high, and I can't find the reason.

They even thought about giving up and not building a website, but thinking about how they persisted for so many years, once giving up is equal to failure, so they can only choose to persevere, because only perseverance can be successful!

In fact, as long as the problem is found, the problem is half solved:

  • The problem may be that the WordPress plugin log path is wrong, resulting in high CPU and MEMORY usage.
  • It's such a small problem, just modify the plug-in path.
  1. iThemes Security Plugin
    iThemes Security › Global Settings › Path to Log Files

    xxx/wp-admin/admin.php?page=itsec&module_type=recommended
  2. BackWPup plugin
    BackWPup › Settings › Information

    xxx/wp-admin/admin.php?page=backwpupsettings#backwpup-tab-information

4) Delete and disable resource-consuming WordPress plugins

If you enable too many WordPress plugins that are not available, the database table will be huge over time, which will lead to too high CPU, RAM memory and other resource usage of the website host, which will seriously affect the performance of the website host, so you must delete the dispensable WordPress. plugin.

Some dispensable functions, such as: URL jump function, can directly upload HTML files for jumping, do not use plug-ins to achieve.

  • Pretty Link Lite plugin records data about user clicks on links
  • The Redirection plugin not only records the data of the clicked link redirection, but also the data of the 404 error page of the website.

These WordPress plugins will record 404 errors and the log of the plugin. If the data of these WordPress plugins is not automatically deleted regularly, it will affect the accumulation over time.MySQL databasedaily operation, so we need to pay attention when enabling such WordPress plugins.

After I deleted these jump plug-ins and database tables, the CPU and RAM memory resource usage of the website host was obviously reduced a lot.

will get SEOpersonnel encountered such a problem, according to the aboveChen WeiliangAfter the shared method is operated,Finally solved the problem that I stayed up late for many days in a row and couldn't solve it!

  • I feel that the big stone in my heart has been put down, and I am a lot more relaxed, hahaha O(∩_∩)O~

I hope my sharing is helpful to you. If you have any questions, please leave a message in this article to discuss ^_^

Extended reading:

Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "What should I do if the CPU and memory usage of the WordPress website is too high? , to help you.

Welcome to share the link of this article:https://www.chenweiliang.com/cwl-163.html

Welcome to the Telegram channel of Chen Weiliang's blog to get the latest updates!

🔔 Be the first to get the valuable "ChatGPT Content Marketing AI Tool Usage Guide" in the channel top directory! 🌟
📚 This guide contains huge value, 🌟This is a rare opportunity, don’t miss it! ⏰⌛💨
Share and like if you like!
Your sharing and likes are our continuous motivation!

 

Comment

Your email address will not be published. Required fields * Callout

scroll to top