Defender "server resource usage is too close to your limit."

Hello!
I am getting the "server resources usage is too close to your limit" error when running a scan. I found this thread
https://premium.wpmudev.org/forums/topic/defender-server-resource-usage-is-too-close-to-your-limit-mu-plugin-code#post-1151129
& added the mu plugin, but it has not solved the problem.
I have granted support access.
Thanks for your help!
Debbie

  • Nastia
    • Support Rock Star

    Hello there Debbie

    Would you please add the following code to the functions.php file of your theme?

    add_filter( 'wd_limit_cpu', 'wd_limit_cpu' );
    function wd_limit_cpu() {
    	return 7;
    }

    Then clear the cache and try again.

    Also, please make sure that you deleted the code that you have added to the mu-plugins folder from the previous thread. From the previous code, the value 1, is not suitable for your site because the CPU usage is higher than 5.

    Let us know how it went!

    Kind regards,
    Nastia

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.