This problem is encountered many times and it can occur randomly without any prior notice. It is faced just after an update installation into .NET Framework. When the user opens his system and further opens the Task Manager, he can find mscorsvw.exe, which is the executable file of the process. It might be listed as .NET Runtime Optimization Service too. This is not seen to run as often as we think. It is basically assigned to run so that it optimizes .NET Framework. This is further responsible for making the apps, that are particularly dependent on it, a lot faster than previous.
Now, this may happen that the optimization takes more time than it was supposed to. This not only hampers your routine or time schedule but according to the information, many users have complained that it occupies a huge CPU percentage whenever it is run, thus making everything slow. There are even cases where it ran for more than one day. Thus, it has become essential for the users to solve and tackle their issues.
Here in this article, we have come up with Four unique solutions to your problem. But before getting into the list let’s quickly understand what causes the high CPU usage in the first place.
What Causes the .NET Runtime Optimization Service High CPU Usage?
Officially, it was designed to run only for a few minutes. The process is definitely a short process that is designed technically. The user somehow gets stuck in the long cycle of the incomplete process, with excessive usage of the CPU. It must be noted that technically it is always instructed to run, only when the system is at idle condition. This is so as throughout the process the libraries are recompiled.
Now, when it does not get finished even throughout the whole week, the user gets worried.
- This can happen that there is malware that is running on your computer. This can be in any form. It might be hidden under the banner of service or it might have already attacked a service and infected it. For this, you are advised to go for a malware scanner. But, sometimes it gets detected and sometimes it does not.
- Once you acknowledge that the speed is quite low, you can fasten it up through some commands.
- And the last option is to restart the entire system in case you feel any corruption.
How to Fix .NET Runtime Optimization Service High CPU?
Four unique and efficient solutions are provided below, in order to understand and tackle your problem. In no particular order, they are listed below.
Solution 1: Optimizing the Process
The first solution deals with making the process far more effective in all measures. This solution does not instruct you to shut the process down quickly. The process running not only performs what is required but also helps the computer in understanding the applications on the program running. The process can however also be fastened. There are certain commands and scripts that ensure the increase of speed. This technology allows more CPU core usage, thus ensuring quick finishing of the process.
The steps below are listed in an appropriate manner and they must be followed in the same order to get the desired results.
Step 1: Click on The Start Menu. You can simply go to the search bar as well.
Step 2: Search “Command Prompt” there.
Step 3: Right-click on the first result.
Step 4: Select the “Run as Administrator “option from the drop-down menu.
Step 5: Click on the Windows key and R key simultaneously to launch the Run dialog box.
Step 6: Put “cmd” in the box and then click on Ctrl+Shift+Enter to make the Command Prompt run as administrator.
Step 7: Write this command line if you are having a 32-bit operating system and press enter after entering this
Write this command line if you are having a 32-bit operating system and press enter key
Step 8: Execution of this command –
Step 9: Check your device and note that your problem is resolved or not.
In case, you are a user of the older version of the operating system, you can also follow the steps below –
Step 1: At first you need to save this script: https://github.com/Microsoft/dotnet/blob/master/tools/DrainNGENQueue/DrainNGenQueue.wsf
To do that click on the Raw tab and select Save Link as an option from the drop-down menu.
You must save the file as a Windows Script File i.e. (*.wsf)
Step 2: Find the folder containing the saved file.
Step 3: Identify the file and double click on it.
Step 4: Run it with Windows Script Host.
After following all these instructions, go and check whether your issue is resolved or not.
Solution 2: Scan Your Computer for Malware
The next solution is checking your system and detecting malware and other threats. There are certain hidden malware in your system that might be the real cause of the problem. This happens as these tend to attack resources and get hold of it. You might even get confused that which are the real files and which are the malware. They do that by making the name something that would not easily be guessed as a malicious file by the user.
There are so many anti-malware tools available in that market that can do the job of finding for you. Not only that, you are in fact requested to undergo multiple scanners as these malicious files can often go undetected as it is quite impossible for a single scanner to do all these jobs.
Solution 3: Restarting the Service
You always have the opportunity to start everything from the very beginning. There might be some bug that is creating hindrances in the process. In that case, restarting is the best option. To do that there are some steps that you must follow in the right manner, in order to this restart process efficiently. Those steps are listed down below –
Step 1: At first you are instructed to launch the Run dialog box. You can do this by clicking on the windows key and R key simultaneously.
Step 2: When it appears, quickly type in: “services.msc”.
Note: You don’t need to add the quotation symbols.
Step 3: Click on OK.
Step 4: Find the “NVIDIA Telemetry Container on the list.
Step 5: Right-click on that. Go to Properties thereafter.
Step 6: Check for Service Status to find out whether it has started or not.
Step 7: Click on the “Stop” button.
Step 8: After completing step 7. Click on the start button to restart the service.
Step 9: You must check that under the startup menu, the service properties window is fixed and set to automatic.
Step 10: Confirm, agree, and click on all Ok buttons of all the dialogue boxes that appear before you.
Now, it may so happen that you encounter a certain message from the system:
“Windows could not start the service on Local Computer. Error 1079: The account specified for this service differs from the account specified for other services running in the same process.”
If you face any such thing, then you must continue with the next steps.
Step 1: First follow the first three steps from the previous instruction set.
Step 2: Go to the Log On tab.
Step 3: Click on the Browse option.
Step 4: Place your account name in the “Enter the object name to select” box.
Step 5: Click on the Check Names options and wait till it is available.
Step 6: Click on the Ok button.
Step 7: Enter your password in the box if you are asked for it.
Thus, with this, your instruction comes to an end. And it will start surely without any further issue.
Solution 4: Performing a Clean Boot
Now coming to this fourth type. In many cases, the actual problem might be another third-party app that is actually consuming the CPU. So, through this solution, we will straight do a clean boot. It will check whether there is any indulgence of any different third-party app. To initiate clean follow the steps below –
Steps 1: At first you are instructed to launch the Run dialog box. You can do this by clicking on the windows key and R key simultaneously.
Step 2: Then you type: “msconfig”
Step 3: Click OK
The system Configuration Window appears.
Step 4: Click on Service Tab.
Step 5: Check the box beside “Hide All Microsoft Services”
Step 6: Click on “Disable All” button.
Step 7: Click Apply. Followed by Ok.
After this you will get notification for restarting your system. You should mark it for later.
After that undergo the following steps too.
Step 1: Follow Step 1-3.
Step 2: Click on Startup Tab.
Step 3: Click on Open Task Manager.
Another pane arises.
Step 4: Disable everything with High Impact, under the Start-Ip Impact pane.
Obviously, you can enable it later. After finishing all these, restart your device. After that check whether the CPU usage has lowered or not. If not, then it will directly suggest that there are some third-party apps that is the real cause behind all this. Thereafter, you can go for enabling the apps one after another to solve the issue finally.
We have placed some excellent solutions for you that will surely guide you well. We don’t know for sure what is causing the issue; hence we have kept all options open for you. If you couldn’t solve the issue even after all these methods, you are requested to check for tools online or consult an expert for the matter.