• Resolved leepaulheron

    (@leepaulheron)


    Hello WooCommerce Support,

    WooCommerce appears to be maxing out my server CPU resources, just like other recent threads.

    The issue started with WC 10.5.1, and continues with the latest update 10.5.2. Yesterday we took the following steps:

    • Placed front-end behind Maintenance Mode to block incoming traffic.
    • Deactivated all plugins via cPanel File Manager, restored one-by-one, ensuring all were up-to-date, including a fresh install of WC via [ Plugins > Add New ]
    • Deactivated and purged LS Cache at server level (because others were reporting issues with LS Cache – it remains deactivated).
    • Our host has disabled WP-Cron via [ wp-config ], and added an MU-Plugin to stop Action Scheduler running via admin-ajax async runner.
    • Sadly the issue recurs, every time WooCommerce is active.

    Please see the following Pastebin for the WC Status Report: https://pastebin.com/8w03iNwf

    Looking forward to your assistance as soon as you can, thank you.

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter leepaulheron

    (@leepaulheron)

    Update – I can confirm the following:

    • WP core is now 6.9.1
    • WooCommerce Analytics has been installed & activated.
    • All other plugins except WooCommerce (and Maintenance) have been deactivated and removed via cPanel.

    Link to the latest WC Status report – https://pastebin.com/8GL0tu6K

    I will monitor CPU usage and the [ error_log ] to see if this has improved things. Thank you.

    Thread Starter leepaulheron

    (@leepaulheron)

    Hello,

    • WP Core is now 6.9.1
    • WooCommerce + WooCommerce Analytics are active.

    Link to the latest WC Status Report – https://pastebin.com/8GL0tu6K

    Thank you.

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    Thank you for sharing the updated system status report we really appreciate you taking the time to do that.

    After deactivating all plugins except WooCommerce (and Maintenance), have you noticed any improvement in CPU usage since making these changes, or does it continue to spike as before?

    Please continue monitoring the CPU usage and the error_log, and let us know what you observe. This information will help us narrow things down further. Thanks again, and we’ll take it from here.

    Thread Starter leepaulheron

    (@leepaulheron)

    The site was left to run overnight on maintenance mode, with just a bare-bones theme and WooCommerce.

    CPU usage spiked constantly overnight, and we are getting the following server errors:

    PHP Fatal error:  Uncaught Error: Class "WC_Log_Levels" not found in /REDACTED/public_html/wp-content/plugins/woocommerce/includes/class-wc-logger.php:236\nStack trace:\n#0 /REDACTED/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(459): WC_Logger->critical()\n#1 [internal function]: WooCommerce->log_errors()\n#2 {main}\n  thrown in /REDACTED/public_html/wp-content/plugins/woocommerce/includes/class-wc-logger.php on line 236\n

    I am going to re-install WooCommerce via [ Plugins > Add New ] and check file permissions.

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for update. This error occurs because WooCommerce is trying to use the class WC_Log_Levels, but it can’t find it, usually due to an incomplete or corrupted update.

    To resolve this safely, please take a full backup of your site first, and then reinstall or update WooCommerce to ensure all files are complete and intact.

    Let us know what you find.

    Thread Starter leepaulheron

    (@leepaulheron)

    An update on this issue:

    Although there were some valid issues with the [ Shopkeeper Extender ] plugin, and also DB errors coming from [ Action Scheduler ], it appears the prime cause of our 100% CPU usage was our website being the target of a massive bot scraping attack.

    The issues with action scheduler have been resolved. The WooCommerce Analytics plugin rebuilt the tables as hoped, and they have since been checked and verified. All good.

    We have also instigated LiteSpeed + Redis caching, and moved WP-Cron to run on the server, which has improved things further.

    The website is now behind Cloudflare to mitigate against future bot attacks, and everything appears to be running smoothly.

    Thank you for your assistance to-date. This ticket can be closed now, if you wish.

    All the best, and thanks.

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for the detailed update! I’m glad to hear that the Action Scheduler issues have been resolved, WooCommerce Analytics tables are verified, and that your site is now running smoothly.

    It’s great that you’ve implemented LiteSpeed + Redis caching, moved WP-Cron to the server, and put Cloudflare in place to protect against bot attacks — these are all excellent steps for improving performance and stability.

    I’m happy to hear everything is working well, and we can consider this ticket closed.

    Before you go, If you found WooCommerce helpful in setting up your store, we would really appreciate it if you could leave a five-star review here: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/#new-post. Your feedback helps us improve and lets other users know how WooCommerce can support their business.

    @leepaulheron we too have had several massive bot attacks since going up to WC V10.2. I feel like something was left vulnerable in the code as we never had a problem like this before. We also had to go behind cloudflare as well and put in rally strong blockers with custom rules. Meta and many other crawlers were super aggressive as well and also all had to be blocked.

    Hi @exitoffroad,

    Thank you for sharing your experience, it is concerning to hear you have also been dealing with aggressive bot traffic and increased server load after updating. We definitely want to ensure this is looked at carefully and that you have the right protection and configuration in place.

    Have you had a chance to review and try the steps outlined earlier in this thread, including checking logs, monitoring scheduled actions, and implementing caching or firewall level protections such as Cloudflare rules?

    If you would like us to take a closer look at your specific setup, please open a new support topic so we can focus on your case individually, in line with the forum guidelines and best practices here, https://ww.wp.xz.cn/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too. Kindly include your System Status Report via https://pastebin.com and any relevant error logs or screenshots via https://snipboard.io to help us investigate further.

    We will be happy to assist you there.

Viewing 9 replies - 16 through 24 (of 24 total)

You must be logged in to reply to this topic.