• Resolved jayhan

    (@jayhan)


    I am running a WordPress site on AWS.

    The WP server CPU usage went up suddenly yesterday evening and it doesn’t go down. There were not many changes for site visitors.

    I turned on debug option and I saw that there are so many PHP Notices like these.

    [27-Dec-2022 02:01:19 UTC] PHP Notice:  Undefined index: width in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php on line 276
    [27-Dec-2022 02:01:19 UTC] PHP Notice:  Undefined index: height in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php on line 277

    Could these be the reason why the server’s CPU utilization suddenly went up? Please refer to system information and log files, and help me.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there @jayhan

    Thank you for reaching out. I understand that a spike in server resources is registered, which points to WooCommerce regenerating images.

    Could you clarify if this happened after a theme change, or maybe clicking the “Regenerate” button found in the WooCommerce > Status > Tools screen (used for regenerating shop thumbnails), please?

    We will be standing by for your response.

    Thread Starter jayhan

    (@jayhan)

    Hi @anastas10s,

    Thank you for your reply. I didn’t change the theme (Astra child) for a few years and didn’t click the Regenerate button. Actually, I didn’t know that there was a Regenerate button there.

    Saif

    (@babylon1999)

    Hello @jayhan,

    First, I would like to note these are notices not errors. A notice just let’s you know that something may go wrong if you keep things the way they are in the future.

    I checked your system status report and found a few possible candidate plugins that might cause such a problem, like the third-party blocks plugin.

    You can try creating a staging environment using WP-STAGING, disable all plugins, then and activate them one by one to see which one is causing the noticer. I will also recommend switching to the Storefront theme when testing.

    With that said, I don’t believe the notices above are what’s causing the spikes. I can see a few database-related error logs.

    Here’s one of them:

    [26-Dec-2022 20:04:01 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name = '_transient_astra-theme-cron-test-ok' made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array('wp'), WP_Hook->do_action, WP_Hook->apply_filters, Astra_Theme_Background_Updater->install_actions, Astra_Theme_Background_Updater->test_cron, get_transient, delete_option, QM_DB->query


    You can check this thread for more context.

    Alternatively, you can share the error log link above with your host, perhaps they can help. ??

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The WP server CPU usage went up suddenly.’ is closed to new replies.