How to Fix Microsoft Common Language Runtime Native Compiler High CPU Usage?

Close the process from Task Manager

Reading time icon 5 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

Key notes

  • Microsoft Common Language Runtime Native Compiler High CPU usage issues could occur due to corrupted or incomplete installation of the .Net Framework.
  • To fix it, close the process in Task Manager, stop the Microsoft Common Runtime service, or reset the NGen cache.
  • For more solutions and detailed steps, keep reading! 

If you notice a process ngen.exe or Microsoft Common Language Runtime Native Compiler is causing high CPU usage, this guide can help! We will discuss the expert-tested methods to fix the issue right after explaining the causes.

Microsoft Common Language Runtime Native Compiler (ngen.exe) plays an essential component of the .Net Framework, and it creates a Runtime environment that supervises the operation of apps written for the .Net platform, irrespective of their programming language.

It handles various tasks such as converting code into machine language, garbage collection, exception handling, and thread management to enhance the performance of managed apps in Windows.

If you see high CPU usage due to this process, here are some of the reasons for the same:

  • The process is scheduled to run as a part of system maintenance.
  • Incorrect configuration settings.
  • Multiple apps are using the process for compilation.
  • The process is running in the background with other system resources.
  • Corrupted system files or services
  • Malware disguising as the process

How to stop CLR Native Compiler’s high CPU usage?

Before engaging in advanced troubleshooting steps, you should consider performing the following checks:

1. Stop the process

  1. Press Ctrl + Shift + Esc to open Task Manager.Close task Manager Microsoft Common Language Runtime Native Compiler High CPU Usage
  2. Go to the Processes tab, locate Microsoft Common Language Runtime Native Compiler or ngen.exe, select it, and click End task.

Closing the process causing performance issues is a workaround that you can follow before moving to other solutions. You can apply the same approach to other processes, such as Runtime Broker.

2. Restart the service

  1. Press Windows + R to open the Run dialog box.SERVICES Microsoft Common Language Runtime Native Compiler High CPU Usage
  2. Type services.msc and click OK to open the Services app.
  3. Locate and right-click  Microsoft Common Language Runtime and click Stop.Stop the services -
  4. Wait for the service to stop, then close the Services window.

3. Reset the NGen cache & change the priority settings

  1. Press the Windows key, type cmd, and click Run as administrator.CMD elevated - Microsoft Common Language Runtime Native Compiler High CPU Usage
  2. Type the following command to reset the NGen cache to resolve conflicts and corruption and hit Enter: ngen executeQueuedItemscmd_executeditems Microsoft Common Language Runtime Native Compiler High CPU Usage
  3. Copy & paste the following command to adjust the priority and scheduling of the process to reduce the load and press Enter: ngen queue /priority priorityLevelcmd_priority level

4. Run your computer in a clean boot environment

  1. Press Windows + R to open the Run dialog box. cleanboot1 Microsoft Common Language Runtime Native Compiler High CPU Usage
  2. Type msconfig and click OK to open the System Configuration window.
  3. Go to the Services tab, click Hide all Microsoft Services, then select Disable all.Clean boot Disable all
  4. Switch to the Startup tab and click the Open Task Manager link.Open task Manager Clean boot
  5. On the Task Manager window, locate each Enabled task and click Disable.Disable Task Manager  Microsoft Common Language Runtime Native Compiler High CPU Usage
  6. Close Task Manager, click Apply, then OK on the System Configuration window.CLEAN BOOT 5
  7. Click Restart.Restart clean boot

Your computer will restart with limited functionalities so that you can identify the third-party software or service causing the conflict. Once done, follow the steps above to undo the changes and restart your computer normally.

5. Run SFC & DISM scans

  1. Press the Windows key, type cmd, and click Run as administrator.CMD elevated - Microsoft Common Language Runtime Native Compiler High CPU Usage
  2. Copy & paste the following command to repair system files and press Enter: sfc/scannowSFCSCANNOW CMD
  3. Wait for the scan to complete, then type the following command to restore the Windows OS image and hit Enter: Dism /Online /Cleanup-Image /RestoreHealthRestore health Microsoft Common Language Runtime Native Compiler High CPU Usage
  4. Once the command is executed, restart your computer.

6. Delete a registry key

  1. Press Windows +R to open the Run dialog box.Regedit - Microsoft Common Language Runtime Native Compiler High CPU Usage
  2. Type regedit and click OK to open Registry Editor.
  3. First, take a backup, go to File, then select Export. Save the file in .reg format on your computer in an accessible location.Export registry
  4. Navigate to this path: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\v2.0.50727\NGenService\Roots
  5. Right-click and select Delete to remove all the entries for the Roots folder and close the Registry Editor.Delete the registry entry Microsoft Common Language Runtime Native Compiler High CPU Usage
  6. Reboot your computer.

7. Repair/reinstall .the Net Framework

  1. Download the Microsoft .NET Framework Repair Tool.Download .NET Framework - Microsoft Common Language Runtime Native Compiler High CPU Usage repair tool -
  2. Double-click the executable file and follow the on-screen instructions to install it.
  3. On the Microsoft .NET Framework Repair Tool window, accept the terms, and click Next.Accept the terms
  4. The tool will scan for corrupted files in the current .NET Framework and advise solutions to repair them.
  5. Click Next to apply the fixes.Click Next
  6. Then, click Finish to close the Repair tool window.Finish

If this doesn’t help, follow these steps to reinstall .Net Framework:

  1. Press Windows +R to open the Run window.Appwiz.cpl  - Microsoft Common Language Runtime Native Compiler High CPU Usage
  2. Type appwiz.cpl and click OK to open the Programs and Features window.Uninstall NET FRAMEWORK Microsoft Common Language Runtime Native Compiler High CPU Usage
  3. Select Microsoft .Net Framework and click Uninstall.
  4. Once uninstalled, go to the .NET Framework’s official website.Download .NET Framework
  5. Click the latest version and download it.
  6. Once the setup is downloaded, go to the file location, and double-click it to initiate the installation.
  7. Click Install, and wait for the process to complete.Install

To avoid high CPU performance issues, including the Microsoft Common Language Runtime Native Compiler has stopped working issue, make sure to allow the ngen.exe process to run when your system is in an idle state and keep your system & software up to date.

In case the solutions mentioned don’t work for you, try to roll back to an earlier version of Windows using a restore point.

If you often face high CPU usage on your Windows 11 computer, we recommend you check out this guide.

Bumped into any issues, or do you need more info about Microsoft Common Language Runtime Native Compiler? Don’t hesitate to leave a comment in the section below.

More about the topics: windows 10, Windows 11

User forum

0 messages