How to Resolve High CPU Usage by Antimalware Service Executable (MsMpEng)
Antimalware Service Executable (MsMpEng.exe) is a core process of Windows Defender, designed to protect your computer from malware threats. However, it often causes high CPU, memory, and disk usage, slowing down your system significantly. If you’re experiencing performance issues due to MsMpEng, this guide will provide effective solutions to fix the problem.
WHY DOES ANTIMALWARE SERVICE EXECUTABLE USE HIGH CPU?
Before fixing the issue, it’s essential to understand why MsMpEng consumes excessive CPU and memory:
- Real-time Protection – Constantly scans files, connections, and programs for threats.
- Full Scan Activity – Periodic deep scans can use a lot of system resources.
- Conflicts with Other Antivirus Software – Running multiple antivirus programs can cause performance issues.
- Corrupt Windows Defender Files – Corrupt or outdated definitions can lead to abnormal resource usage.
- Excessive File Scanning – Windows Defender scans its own files, leading to CPU spikes.
METHOD 1: LIMIT WINDOWS DEFENDER’S CPU USAGE
You can restrict the amount of CPU Windows Defender can use by using a command in PowerShell:
- Press Win + X and select Windows Terminal (Admin).
- Type the following command and press Enter:
Set-MpPreference -ScanAvgCPULoadFactor 30
- This limits the CPU usage to 30%. You can adjust the value as needed.
METHOD 2: SCHEDULE WINDOWS DEFENDER SCANS TO AVOID HIGH USAGE
Since real-time protection and scheduled scans consume a lot of resources, changing the scan schedule can help:
- Press Win + R, type
taskschd.msc
, and hit Enter to open Task Scheduler. - Navigate to Task Scheduler Library > Microsoft > Windows > Windows Defender.
- Locate Windows Defender Scheduled Scan, right-click it, and select Properties.
- Under the Triggers tab, modify the schedule to run during low-usage hours.
- Click OK to save changes.
METHOD 3: EXCLUDE WINDOWS DEFENDER FROM SCANNING ITS OWN FILES
To prevent Windows Defender from scanning its own files, add an exclusion:
- Press Win + I to open Settings.
- Go to Update & Security > Windows Security > Virus & threat protection.
- Click Manage settings under Virus & threat protection settings.
- Scroll down and click Add or remove exclusions.
- Click Add an exclusion, choose Folder, and navigate to
C:\Program Files\Windows Defender
. - Click Select Folder to confirm.
METHOD 4: TURN OFF WINDOWS DEFENDER (TEMPORARY SOLUTION)
Disabling Windows Defender can resolve high CPU usage, but it’s recommended to use an alternative antivirus:
- Press Win + R, type
gpedit.msc
, and hit Enter. - Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus.
- Double-click Turn off Microsoft Defender Antivirus, select Enabled, and click OK.
- Restart your computer for changes to take effect.
To re-enable Windows Defender, repeat the steps and set it to Not Configured.
METHOD 5: DISABLE WINDOWS DEFENDER REAL-TIME PROTECTION
If you don’t want to disable Windows Defender completely, turning off real-time protection can help:
- Press Win + I to open Settings.
- Navigate to Update & Security > Windows Security > Virus & threat protection.
- Under Virus & threat protection settings, click Manage settings.
- Toggle off Real-time protection.
Note: Windows Defender will automatically turn real-time protection back on after a while.
METHOD 6: CHECK FOR WINDOWS UPDATES
Microsoft regularly releases updates to fix performance issues. Updating Windows can resolve high CPU usage:
- Press Win + I to open Settings.
- Click Update & Security, then Windows Update.
- Click Check for updates and install any available updates.
METHOD 7: PERFORM A CLEAN BOOT
A clean boot starts Windows with only essential programs and services:
- Press Win + R, type
msconfig
, and hit Enter. - Go to the Services tab and check Hide all Microsoft services.
- Click Disable all, then go to the Startup tab and click Open Task Manager.
- Disable all startup items and restart your computer.
- Check if the high CPU usage issue persists.
METHOD 8: USE AN ALTERNATIVE ANTIVIRUS SOFTWARE
If Windows Defender continues to cause issues, consider using a lightweight third-party antivirus program like:
- Bitdefender
- Kaspersky
- Avast
- ESET NOD32
Before installing another antivirus, ensure Windows Defender is disabled to prevent conflicts.
METHOD 9: DELETE WINDOWS DEFENDER’S HISTORY FILES
Old or corrupt Windows Defender history files can cause performance issues:
- Press Win + R, type the following, and hit Enter:
C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service
- Delete all files inside the Service folder.
- Restart your computer and check CPU usage.
FINAL THOUGHTS
Antimalware Service Executable (MsMpEng.exe) is essential for security but can sometimes slow down your computer. By following the methods above, you can reduce high CPU usage while keeping your system protected. If the issue persists, consider using alternative security software that consumes fewer resources.