• Resolved embercide

    (@embercide)


    This is flooding so fast in my apache logs that it is maxing out my 2x core 4GB ram server with no other current traffic. I’ve searched the source code for all the plugins installed and it only appears in the woocommerce plugin:

    [29/Sep/2023:08:05:47 +0000] “POST /wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=5a1cb98b7b HTTP/1.0” 503 579 “-” “WordPress/6.3.1; https://www.mysite.com.au”
    [29/Sep/2023:08:05:46 +0000] “POST /wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=5a1cb98b7b HTTP/1.0” 200 435 “-” “WordPress/6.3.1; https://www.mysite.com.au”
    [29/Sep/2023:08:05:47 +0000] “POST /wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=5a1cb98b7b HTTP/1.0” 200 435 “-” “WordPress/6.3.1; https://www.mysite.com.au”
    [29/Sep/2023:08:05:46 +0000] “POST /wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=5a1cb98b7b HTTP/1.0” 200 435 “-” “WordPress/6.3.1; https://www.mysite.com.au”
    [29/Sep/2023:08:05:47 +0000] “POST /wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=5a1cb98b7b HTTP/1.0” 200 435 “-” “WordPress/6.3.1; https://www.mysite.com.au”
    [29/Sep/2023:08:05:45 +0000] “POST /wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=5a1cb98b7b HTTP/1.0” 200 435 “-” “WordPress/6.3.1; https://www.mysite.com.au”

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @embercide

    From the logs you’ve shared, it looks like the as_async_request_queue_runner action is being called frequently, causing high CPU usage. This action is part of the Action Scheduler library used by WooCommerce and many other plugins to handle asynchronous and scheduled tasks.

    It’s unusual for this action to cause high CPU usage unless there are a large number of tasks being processed. There could be a plugin or a theme that is creating a lot of tasks, or there might be a problem with tasks not being deleted after they’re processed.

    To investigate this further, you could use a plugin like WP Crontrol to view the scheduled tasks (crons) and see if there are any unusual patterns. You can also check the Action Scheduler’s own admin screen (Tools > Scheduled Actions) for large numbers of pending actions.

    I hope this provides some clarity on the matter. If you have any other questions or need further assistance, please don’t hesitate to ask.

    I just want to say thanks for this:

    You can also check the Action Scheduler’s own admin screen (Tools > Scheduled Actions) for large numbers of pending actions.

    I’ve spent a ton of time trying to diagnose high CPU usage and I’ve never seen this advice. I found two plugins with crons gone wild. Crossing my fingers I’ve now fixed it!

    Thread Starter embercide

    (@embercide)

    @jodzeee which plugins did you find? Curious to see if I have the same ??

    @embercide One was AutomateWoo, which I haven’t even set up yet. I just installed it with the intenions of swapping it out for Follow-Up Emails. So I’m not sure why it was running crons that were failing. I also noticed I last updated it on Feb. 7, which is when my CPU started to spike. I uninstalled it and am hoping that fixes it.

    The other was BackupBuddy (now Solid Backups by SolidWP). I didn’t realize it, but I could even see in their diagnostic tool that multiple crons were running every 10 seconds. I just had to do housekeeping/cleanup to fix that.

    • This reply was modified 9 months, 2 weeks ago by jodzeee.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘as_async_request_queue_runner maxing out CPU’ is closed to new replies.