There are tons of background processes that take place and run in the background when you are using your PC. And if your PC is lagging without any reason in doing even simple tasks then you must have a look at the processes and services that are running in the background.
There can be some processes that are eating up your CPU resources, leading to slow processing of the rest of the inputs. One such process is the .NET runtime optimizations process (mscorsvw.exe) that has been caught red-handedly by many Windows users while using a big chunk of the CPU power for absolutely no reason.
If you are also facing the same issue with your .NET runtime optimizations, then here I have discussed the proven ways how to fix the .NET runtime optimization high CPU usage on Windows.
What is .NET runtime optimization service and What is its importance?
The .NET runtime optimization service can be seen running in the background in the form of mscorsvw.exe. This is the name actual executable file of the .NET runtime optimization service. This service is used to optimize the PC by precompiling the .NET assemblies in the background while the PC sits idle.
This service is needed by your software, programs, and applications on your PC because it contains native image generator technology, allowing the apps and software to launch quickly.
Some applications run slower in the absence of the .NET runtime optimization service while some directly refuse to run in its absence. Hence, disabling this service is gonna create quite a lot of issues in running the applications. But if the process is consuming a lot of CPU power then it becomes really important to sort this thing out.
What makes the .NET runtime optimization service consume a lot of CPU resources?
The .NET runtime optimization service is made to compile the .NET framework libraries for about 5 to 10 minutes and only in the conditions when the PC is up in an idle scenario. However, if the service is eating up a lot of CPU power, then the following could be the possible causes to it:
- Slow running of the optimization service can cause a high CPU usage issue. If it runs beyond 5 to 10 min due to slow operation, there are possibilities that the .NET runtime optimization service will start to eat the CPU to complete the compilation.
- Corrupted service can also be a problem. If the .NET runtime optimization error is corrupted and is running in the background then it will obviously do abnormal functioning like abnormal usage of the CPU.
- Malware is one of the most commonly seen reasons behind this issue. This is because it is actually the malware that is running in the background under the disguise of the .NET runtime optimization service.
Fix .NET runtime optimization high CPU usage
Now that you have a good idea about what the .NET runtime optimization service is, what is its importance, and what can be the possible causes behind its consuming high CPU resources, let’s discuss the proven ways by which you can fix this issue on your Windows PC.
1. Run Malware Scan
The very first thing to do when you face high CPU usage due to any background service is to perform a proper full scan of the whole PC for any malware. The same also applies here as well. It has been found that there is malware that runs under the disguise of the .NET runtime optimization service, making it perform additional malicious operations under the branding of .NET.
Also, it can be hard for Windows’ built-in Virus & threat protection application to find the malware. But you can give it a try.
1. Search for Virus & threat protection, and open it from the search results.
2. Go to the Scan options and select Full scan.
After performing a full scan if it finds malware then it is well and good. You can remove it. But if you want to be double sure about the malware, I would advise you to use third-party anti-virus software like Avast and Malwarebytes for free.
2. Optimize and speed up the .NET runtime optimization service
The .NET runtime optimization service is made to run only using one single CPU core. But if you believe that the service is running slowly, resulting in high CPU usage, you can speed up the .NET runtime optimization service to utilize more cores.
This will make the service compile the resources much faster. To optimize and speed up the service you will initially need to know whether you are running a 32-bit Windows or a 64-bit one.
1. To find out of you are running a 32-bit or 64-bit OS version, open File Explorer, right-click on This PC and click on Properties. Under the System type section, you will see 32-bit or 64-bit.
2. Search for cmd and run Command Prompt as administrator.
3. Execute the following commands in Command Prompt based on the 32-bit or 64-bit OS version:
For 32-bit OS:
For 64-bit OS:
4. Now run the following command and wait for a couple of minutes before closing the Command Prompt:
Now run the task manager and see what’s the status of your CPU usage. There is also an alternate way to optimize and speed up the .NET runtime optimization service if you don’t want to mess with the command lines.
There is an official Microsoft script that can be used to perform the same thing I showed you above.
1. Simply go to the Scriop page on GitHub from here.
2. Right-click on Raw and select the Save Link As… option to download the script as a .wsf file.
3. Now run the script by double-clicking on the downloaded file and finally clicking on Execute.
3. Restart the .NET runtime optimization service (Nvidia Telemetry Service)
Restarting the .NET runtime optimization service can make the issue disappear if the issue is appearing due to some caching. To restart the service:
1. Press Win+R, type in services.msc, and hit Enter.
2. Scroll down and look for NVIDIA Telemetry Container, right-click on it, and select Restart.
3. Again right-click on the NVIDIA Telemetry Container and now select Properties.
4. Make sure the Startup type: option is set to Automatic. Now, click on Stop and then Start.
5. Finally, click on OK.
4. Clean boot your PC
The reason behind the high CPU usage by the .NET runtime optimization service can be specific software. If you think that this is the case, you can try performing a clean reboot of the system. This will make sure that only necessary Windows services are running and not any of the services of some applications.
1. Press Win+R, type in msconfig, and hit OK.
2. This will open a configuration window. Go to the Services tab, check the Hide all Microsoft services box, and then click on the Disable all button.
3. Now you will be asked to restart the PC. Choose the Restart Later option.
4. Now, in the same configuration window, go to the Startup tab and click on Open Task Manager.
5. Under the Startup impact variable, look and disable the apps that whose Startup impact status says High.
6. Finally, restart the PC.
Open up the Task Manager after the PC gets restarted and see if the issue is fixed. If the issue is no more there, you can re-enable the tasks that you disabled previously.
So, these were the ways to fix the high CPU usage by the .NET runtime optimization service on Windows. If none of the fixes works for you then you’ll have to consult a technician or you can use the PC with the .NET Framework temporarily disabled. However, I wouldn’t advise you to disable the service as it is required by a number of default Windows programs.
If this fixing guide was helpful for you then you can consider sharing it with the needy ones in your circle. Also, if you have some other fixes to this solution or any questions regarding the steps shared here you can leave them in the comments below. I’ll surely take a look into those.