Kickassd Knowledge Base

Wordpress admin-ajax.php CPU Use

    The introduction of the Wordpress Heartbeat API has some advantages, and of couse disadvantages. The Heartbeat API is responsible for revision tracking, aut-save, and better session management. The downside is that it can quite easily cause high cpu load on sites where you may have multiple users logged in, especially to the dashboard area. Simply leaving a page open in dashboard can cause the  Heartbeat API to continually spawn PHP processes which uses CPU.

    Options For Reducing Wordpress Heartbeat CPU Use

    You can disable it completely by adding the following to your themes function.php file by adding this after the "<?php" tag:


    add_action( 'init', 'stop_heartbeat', 1 );
    function stop_heartbeat() {

    On larger sites where there are usually multiple people working in the admin dashboard this may not be a good option. You can instead reduce the Heartbeat frequency by using the Heartbeat Control plugin.

    This plugin will also allow you to disable Heartbeat, but from what I have seen it is not always completely reliable for disabling.

Was this answer helpful?

 Print this Article

Can't find what you are looking for? Create a support ticket and our support team will be happy to help!