Windows Defender uses all available CPU and renders Windows Server 2022 unusable

Stephen P 101 Reputation points
2023-05-10T16:28:31.2566667+00:00

I am running a Windows Server 2022 virtual server under Azure.

Edition Windows Server 2022 Datacenter Azure Edition

Version 21H2

Installed on ‎20/‎11/‎2021

OS build 20348.1726

For the last few days it has, from time to time, become almost unusable. It seems that the Antimalware Service Executable is consuming all available CPU, rendering the computer unresponsive and I/O operations becoming incredibly slow. The system is up to date. Troubleshooting is almost impossible because the performance is so dire. For example, the estimated time to unzip a 200MByte zip (expanding to 800MBytes) file is four hours!

I have already tried the tricks of setting the scans to nightly at midnight and excluding the MsMpEng.exe process from scanning (but the exclusion won't remain; Azure takes it away again).

In addition, the Event Log shows this error occurs frequently:

Session "SenseIRTraceLogger" failed to start with the following error: 0xC0000035

This is related, I think, to Windows Defender Advanced Threat Protection. It gives the following error frequently:

The Windows Defender Advanced Threat Protection Service service terminated unexpectedly. It has done this 95 time(s). The following corrective action will be taken in 300000 milliseconds: Restart the service.

Could the two be related?

I have found that rebooting the server gives a bit of respite, but then the issue recurs.

As I said, I thought I had done what others have suggested, but to no avail. I'm reluctant to disable Windows Defender, but maybe I should look for another antivirus product?

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2023-05-18T09:57:08.94+00:00

    Hello Stephen,

    Thank you for your question and for reaching out with your question today.

    If I were in your situation, I would temporarily disable Defender in order to verify that the issue is being caused by Defender. If this is verified, then I would try updating the system with all the latest updates and fixes to see if that resolves the issue. if not, try flushing your IP and DNS Caches. Open a admin CMD prompt and do the following:

    Input the commands below in the following order, pressing the Enter key on your keyboard after each line:

    ipconfig /flushdns

    ipconfig /registerdns

    ipconfig /renew

    ipconfig /release

    The following Microsoft guide may also be of use:

    https://learn.microsoft.com/microsoft-365/security/defender-endpoint/enable-update-mdav-to-latest-ws?view=o365-worldwide

    If the reply was helpful, please don’t forget to upvote or accept as answer.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.