• Resolved corytrevor

    (@corytrevor)


    Hi

    I’ve noticed CPU spikes on several sites that coincide with “POST /wp-admin/admin-ajax.php?action=wordfence_testAjax HTTP/2” requests coming from the server IP.

    In this thread it says “The?“wordfence_testAjax”?request is a test to see if the scanner can successfully send a request back to WordPress. If the test passes then the scanner will start a new scan fork.”

    Is it normal for that request to trigger a short intense burst of CPU (sometimes up to around 50% of a CPU core) like in this graph?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @corytrevor, thanks for getting in touch.

    We do constantly work on making the plugin faster, perform better, and use less resources but there are not set amounts of RAM, CPU or database queries that we know Wordfence will definitely require in each use-case.

    When a scan is running it’ll be executing PHP – which in itself is multithreaded to allow multiple instructions in parallel on the CPU, reading/writing the database, and looking at your filesystem. I don’t have any reason to believe a short burst of CPU activity as one or more of these kick into action during a scan is anything to be concerned about. The regular performance of your site in-between doesn’t look close to maxing out the CPU resources available.

    Thanks,
    Peter.

    Thread Starter corytrevor

    (@corytrevor)

    Thanks @wfpeter, that’s good to know. When I first saw it I though it was weird that a test ajax request would be using CPU but if it’s connected to the scan running then that makes sense.

    Cheers

    Plugin Support wfpeter

    (@wfpeter)

    No worries @corytrevor, and thanks for getting back to me. If you have further Wordfence questions in the future, by all means start up a new topic and we’ll always be happy to help!

    Peter.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CPU Spikes with wordfence_testAjax’ is closed to new replies.