Have you noticed that your Windows PC suddenly slows down and went to Task Manager to find out that there is a process called .NET Runtime Optimization Service (Mscorsvw.exe) which is it causing high CPU usage in Windows 10 or Windows Server 2016 or 2012? If so, this article will explain what this process is about and what you can do to fix the problem.
What is .NET Runtime Optimization Service Mscorsvw.exe?
.NET Runtime Optimization Service, also known as mscorsvw.exe, is a core component of Windows. It is a Windows service that precompile .NET assembly files so that the program created in .NET can start faster.
The software can be written in many languages. Thousands of software are written using the .NET Framework. You must have used some applications built with the .NET Framework without even knowing it. The .NET Runtime Optimization Service is the service that helps optimize your Windows so applications start much faster .
By default, the .NET Runtime Optimization Service will run in the background when it detects that your PC is in idle mode. Once the build is complete, it will disappear.
Depending on the number of .NET programs you have on your Windows, the sizes of these programs, and the performance of your PC, the service may take a while to complete and may cause high CPU usage in Windows 10 during the process.
It can appear in multiple mscorsvw.exe processes and cause high CPU, RAM or disk usage spike of up to 100%.
.NET Runtime Optimization Service High CPU usage in Windows 10
Although we do not recommend that you terminate the service, as it is actually doing something good for your PC. However, you can terminate the service simply by clicking Finish homework while selecting the process in Task Manager. Doing this will temporarily kill the process, but it will still come back later when your PC is idle again.
You really shouldn’t worry about this process. When you finish your work, it will disappear by itself. It will only run when there is a new application or program made in the .NET Framework installed on your system (or when you install the .NET Framework Redist).
If the .NET Runtime Optimization Service runs incessantly with high CPU usage, it may be the program itself that is causing the problem. Instead of disabling the process, you should first try to fix or remove the problematic .NET program.
If the CPU resource consumption by the process bothers you or if you just want to completely stop the .NET Runtime Optimization Service process, read below.
Accelerate the .NET Runtime Optimization Service
Before proceeding to disable the service, we suggest that you first try speed up the process . By speeding it up, you can get your work done faster and then you can move on to other things.
By default, the .NET Runtime Optimization Service runs on a single-core processor. To help speed it up, right-click the process in the tab Details on the task manager , select Set affinity . Then select All processors and make sure all CPU cores are checked. Right-click on the process again and select Set Priority. Give it a priority of high .
After the change, the .NET Runtime Optimization Service can cause temporary high CPU usage and up to 100%, which is exactly what we intend to do. Doing this should allow the .NET Runtime Optimization Service to run at full speed, thus completing its work faster. Once your work is done, will disappear by itself .
How to Stop .NET Runtime Optimization Service High CPU
To permanently stop the service, which again is something we do not recommend doing, you can disable the .NET Runtime Optimization Service in the Services settings. Here we’ll explain to you how to do it.
- Press the keys Win + R on your keyboard to open the window Run .
- Writes services.msc and hit Enter.
- Double click on the services called Microsoft .NET Framework NGEN .
- Click on the drop-down menu Start type , then select disabled .
- Click on Apply , Then in To accept .
Close the Services panel and restart your PC. The .NET Runtime Optimization Service high CPU usage in Windows 10 issue needs to be resolved.
The regedit way to disable the service
If you don’t have access to the Services panel or you just prefer to do it another way, you can disable the service through Registry Editor. Note that editing the registry can cause a serious problem if done incorrectly. Make a backup of your registry before modifying anything and do it at your own risk .
Go to the start menu or press Win key + R. Type regedit to open Registry Editor. Navigate to the following registry folder. If you see multiple clr_optimization folders, select the latest version number.
HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet services clr_optimization_ (número de versión)
In the right pane, double-click Start Registration. In the value data field, enter 4 (to disable the service) and then do click on To accept . This value represents the startup type for the .NET Runtime Optimization Service. Enter 2 for Automatic , 3 for Handbook and 4 for Disabled .
Once done, close Registry Editor and restart your computer. Check if the .NET Runtime Optimization Service high CPU usage in Windows 10 problem is fixed.