ActionScheduler_ causing high cpu usage

#950565
  • Resolved Feda Gadi
    Rank Math free
    ActionScheduler_DBStore->fetch_action()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:340
        ActionScheduler_HybridStore->get_store_from_action_id()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php:403
        ActionScheduler_HybridStore->fetch_action()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php:283
        as_get_scheduled_actions()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/functions.php:457
        RankMath\Admin\Options->register_option_page()
        wp-content/plugins/seo-by-rank-math/includes/admin/class-options.php:176
        do_action('cmb2_admin_init')
        wp-includes/plugin.php:517
        cmb2_bootstrap()
        wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/bootstrap.php:26
        CMB2_Bootstrap_2110->include_cmb()
        wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/init.php:165
        do_action('init')
        wp-includes/plugin.php:517
    
    	Plugin: seo-by-rank-math 	1 	0.0002
    32	SELECT a.*, g.slug AS <code>group</code>
    FROM wp_actionscheduler_actions a
    LEFT JOIN wp_actionscheduler_groups g
    ON a.group_id=g.group_id
    WHERE a.action_id=7984	
        ActionScheduler_DBStore->fetch_action()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:340
        ActionScheduler_HybridStore->fetch_action()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php:285
        as_get_scheduled_actions()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/functions.php:457
        RankMath\Admin\Options->register_option_page()
        wp-content/plugins/seo-by-rank-math/includes/admin/class-options.php:176
        do_action('cmb2_admin_init')
        wp-includes/plugin.php:517
        cmb2_bootstrap()
        wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/bootstrap.php:26
        CMB2_Bootstrap_2110->include_cmb()
        wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/init.php:165
        do_action('init')
        wp-includes/plugin.php:517
    	Plugin: seo-by-rank-math 	1 	0.0002
    37	SELECT a.*, g.slug AS <code>group</code>
    FROM wp_actionscheduler_actions a
    LEFT JOIN wp_actionscheduler_groups g
    ON a.group_id=g.group_id
    WHERE a.action_id=8025	
    
        ActionScheduler_DBStore->fetch_action()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:340
        ActionScheduler_HybridStore->get_store_from_action_id()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php:403
        ActionScheduler_HybridStore->fetch_action()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php:283
        as_next_scheduled_action()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/functions.php:371
        Action_Scheduler\Migration\Scheduler->is_migration_scheduled()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/migration/Scheduler.php:66
        Action_Scheduler\Migration\Controller->schedule_migration()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/migration/Controller.php:133
        do_action('wp_loaded')
        wp-includes/plugin.php:517
    
    	Plugin: seo-by-rank-math 	1 	0.0002
    38	SELECT a.*, g.slug AS <code>group</code>
    FROM wp_actionscheduler_actions a
    LEFT JOIN wp_actionscheduler_groups g
    ON a.group_id=g.group_id
    WHERE a.action_id=8025	
    
        ActionScheduler_DBStore->fetch_action()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:340
        ActionScheduler_HybridStore->fetch_action()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php:285
        as_next_scheduled_action()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/functions.php:371
        Action_Scheduler\Migration\Scheduler->is_migration_scheduled()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/migration/Scheduler.php:66
        Action_Scheduler\Migration\Controller->schedule_migration()
        wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/migration/Controller.php:133
        do_action('wp_loaded')
        wp-includes/plugin.php:517
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    We apologize for the issue you are facing with high CPU usage related to ActionScheduler. This can occur due to several reasons, including a large number of scheduled actions that are not being processed efficiently or conflicts with other plugins.

    Here are some steps you can take to address this issue:

    1. Check Scheduled Actions: You can check the status of scheduled actions under WordPress Dashboard → Tools → Scheduled Actions → Pending. This will help you identify if there are many actions pending execution.

    2. Run Actions Manually: If you see many pending actions, you can run them manually to see if that alleviates the CPU usage. Look for any Rank Math analytics actions and run them manually.
      Run Rank Math Analytics data fetch manually.

    3. Optimize Database: Consider optimizing your database to remove any unnecessary entries related to scheduled actions. You can use plugins designed for database optimization.

    4. Review Other Plugins: Sometimes, conflicts with other plugins can cause issues with Action Scheduler. Try deactivating other plugins temporarily to see if the CPU usage decreases.

    5. Clear Cache: If you have caching enabled, clear all caches, including server-side caches, as they might be holding onto outdated data.

    If the problem persists after trying these steps, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further. Thank you for raising this concern!

    Sources:
    Resolving Rank Math Analytics Related Issues » Rank Math

    I have clear all cache, query etc, deactive other plugins. Only deactive rankmath that can reduce cpu usage. My blog is new only have 10 article.

    Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    Please check the PHP values of your site by heading over to your WordPress dashboard > Tools > Site Health > Info tab > Server. If they are set too low on your site, please ask your hosting provider to upgrade the values according to the following and see if that works for you:

    PHP Memory Limit: 512M
    Max input time: 150
    PHP time limit: 120
    PHP max input variables: 1000
    

    If the issue persists, then we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    Let us know how it goes. Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘ActionScheduler_ causing high cpu usage’ is closed to new replies.