How To Stop The .NET Runtime Optimization Service From Abusing your CPU (2024)

If you're reading this article, you're most probably suffering from the .NET runtime optimization service consuming most of your CPU power and you want to fix this. We will list 5 methods for that, and in the end, we'll cover the theory behind this problem and fixes you shouldn't use.

How To Stop The .NET Runtime Optimization Service From Abusing your CPU (1)

The reason the EGO web development firm decided to put this into our blog is that some of our clients were asking us for help with this issue since we know the .NET technology and use it heavily on our projects. However, this issue doesn't have anything with the .NET development (we talk about it as one of the leading backend technologies in this blog post); it's more of a system malfunction.

Fix #1. Make a Malware Scan

Why: malware might run under the disguise of the .NET runtime optimization service.

How To Stop The .NET Runtime Optimization Service From Abusing your CPU (2)

Here you'll need to use a third-party anti-malware tool of your choice, so we can't provide precise instruction. In most cases, the interface will have a big notable button to launch the scan. Once it finds malware, it will suggest the best action for it.

If you're not sure about this method and thus don't want to purchase the software you might not need, check out free Avast and Malwarebytes tools. N.B.: we're not affiliated with any of those.

Fix #2. Speed up the .NET Service

Why: there's a Windows-native tool called ngen.exe that can improve the performance of the .Net runtime optimization service by precompiling the cache for it (by default, it is compiled on the go and that might be the bottleneck of the problem).

How To Stop The .NET Runtime Optimization Service From Abusing your CPU (3)

The following instruction explains how to execute one command in Command Prompt.

Step 1.

Open the Command Prompt. Find it by searching for "cmd" in the search box.

Step 2.

Proceed to the location of the ngen.exe file. If your system is installed on the C drive, here's the command for it:

If you have a 32-bit Windows:

cd C:\Windows\Microsoft.NET\Framework\v4.0.30319

If you have a 64-bit Windows:

cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319

The "cd" command stands for "change directory (to)".

Step 3.

Now you can execute the ngen.exe tool by typing the next command:

ngen.exe executequeueditems

If you bump into the "ngen.exe not found" error, download and install the latest version of Microsoft Framework applicable for your OS version.

If this helps, you should notice decreased CPU usage in the Task Manager.

Fix #3: Use Microsoft's Script

Why: the script does virtually the same as the command from fix #2, but if you don't fancy the command line like our web development company clients, you'll find this method easier.

How To Stop The .NET Runtime Optimization Service From Abusing your CPU (4)

Step 1.

Proceed to the official GitHub page of the script: https://github.com/Microsoft/dotnet/blob/master/tools/DrainNGENQueue/DrainNGenQueue.wsf

Step 2.

Find the Raw button. Right-click it and select "Save link as…" to save it on your drive as a Windows Script file (.wsf).

Step 3.

Launch the file. The app responsible for opening it is Windows Script Host.

Again, if it helps, your CPU power shouldn't be loaded mostly with the .Net runtime optimization service anymore.

Fix #4: Restart the Nvidia Telemetry Service

Why: relaunching the service might help get rid of the corrupted data that was causing the .NET runtime optimization service to work too slow.

Note: this fix works only for the owners of dedicated NVIDIA video cards.

Step 1.

Search "services" in Windows 10 Search box. Click on the Services icon to Open Service Manager.

If you have an older version of Windows, press Windows Key + R to open the Run window and type in "services.msc" to launch Service Manager there.

How To Stop The .NET Runtime Optimization Service From Abusing your CPU (5)

Step 2.

Locate NVIDIA Telemetry Container service. Double-click it to open the property window.

Step 3.

Click the Stop button and then Start.

How To Stop The .NET Runtime Optimization Service From Abusing your CPU (6)

Now, with the older Windows version, you might get an "Error 1079".

In this case, get back to the property window and proceed to the Log On tab. There, you'll need to press the Browse… button and under the "Enter the object name to select" enter your account's name. Then, press Check Names and wait until the name is available. Press OK, type in the password if prompted, and after that repeat Step 3.

How To Stop The .NET Runtime Optimization Service From Abusing your CPU (7)

Fix #5: Perform a Clean Boot

Why: in case a third-party app causes the issue, you can boot Windows without any third-party services launching on system startup.

As a performance testing company, we’d like to note here that this is not a fix but rather a way to find a particular service consuming your CPU power and do something with it (stop it or update the corresponding software).

Step 1.

Type in and launch "msconfig" in the search box.

How To Stop The .NET Runtime Optimization Service From Abusing your CPU (8)

Step 2.

Proceed to the Services tab. Tick the "Hide all Microsoft services" checkbox. That will leave only third-party services on the list. Disable all of them by pressing "Disable All".

How To Stop The .NET Runtime Optimization Service From Abusing your CPU (9)

Step 3.

If asked to reboot, refuse and restart later. Now open Task Manager. You can do it in a few ways:

  1. Right-click the taskbar and click Task Manager.
  2. Launch msconfig.exe again, proceed to the Startup tab and select "Open Task Manager".
  3. Search for Task Manager in the Search box.

How To Stop The .NET Runtime Optimization Service From Abusing your CPU (10)

Step 4.

In the Task Manager, find the apps labeled as having "high impact" in the Startup Impact column and disable them via a right-click menu.

Step 5.

Reboot. With these settings, it’s going to be a clean boot mode. If the problem is gone, you can enable the startup tasks one by one to be sure which service is exactly guilty of draining your CPU power. If you find it, you can turn on the third-party services you disabled during Step 2 all at once. If not, turn them on one by one to find the CPU-abusing service among them.

Once you find it, take an appropriate action: remove, update, replace it with an alternate software or simply keep it disabled.

Information Behind the Issue

.NET Runtime Optimization Service (launched from the Mscorsvw.exe file) recompiles its libraries for better system performance. Microsoft states it is expected to run only when your PC is idle and requires a few minutes at most. However, in real life, things appear to be different.

As stated above, there are many possible reasons for that. It might be malware disguising as a .NET runtime optimization service. Another possible reason is a third-party app corrupting the files this service needs to operate. That’s why there is no universal fix to it.

Fixes You Shouldn't Use

When clients have this problem, they often ask the DevOps guys at our design and development company how to stop and remove this .NET runtime optimization service for good.

Indeed, one simple way to address the issue is to prevent Windows from launching this service in the first place. This is the last resort, a method we suggest using only if any other fix didn't work. The whole purpose of the .NET runtime optimization service is to help Windows run faster, which is something you wouldn't want to refuse.

However, if you want to stop the service, proceed to the Services app again, find Net Runtime Optimization Service there and open its Properties via right-click. There, changed the Start Type to Disabled or Manual.

You can also find a registry hack on the Internet that suggests finding the 'ClearPageFileAtShutDown' parameter in Regedit and changing its value to 1. This is just plain wrong since it will remove all files the .NET service has already optimized every time Windows shuts down. On the next start, the .NET runtime optimization service will start its work from the very beginning, thus making your computer even slower than before.

How To Stop The .NET Runtime Optimization Service From Abusing your CPU (2024)

FAQs

How do I fix net runtime optimization service high CPU? ›

NET Runtime Optimization Service's high CPU usage on your PC, you can fix it in the following ways.
  1. End the mscorsvw.exe process using Task Manager.
  2. Run a Malware scan.
  3. Optimize .Net Runtime Optimization Service.
  4. Use the official script by Microsoft.
  5. Restart NVIDIA Telemetry Service.
3 Feb 2022

How do I disable .NET optimization service? ›

How to stop . NET Runtime Optimization Service High CPU
  1. Press Win+R keys on your keyboard to open Run window.
  2. Type services. msc and hit Enter.
  3. Double-click on the services named Microsoft . NET Framework NGEN.
  4. Click on the Startup type drop down menu, then select Disabled.
  5. Click Apply, then OK.

Why does .NET runtime optimization use so much CPU? ›

What Causes the . NET Runtime Optimization Service High CPU Usage? The official answer is that the process needs to recompile its libraries and that it should only run when the computer is idle. Microsoft also states that the process shouldn't take more than a couple of minutes.

What is .NET runtime optimization services? ›

NET runtime optimization service, also known as mscorsvw.exe is a Windows component that optimizes your system by helping it start apps and programs faster. But, sometimes the optimization process may take longer than usual and that's when you see a high CPU usage when you open the Task Manager.

Can I close NET runtime optimization service? ›

The whole purpose of the . NET runtime optimization service is to help Windows run faster, which is something you wouldn't want to refuse. However, if you want to stop the service, proceed to the Services app again, find Net Runtime Optimization Service there and open its Properties via right-click.

How do I uninstall .NET framework? ›

Uninstall the tool

Open Add or Remove Programs. Search for Microsoft . NET SDK Uninstall Tool . Select Uninstall.

Why does Antimalware Service eat CPU? ›

The main reason that antimalware service executable uses too much CPU is that it runs constantly in the background. While running in the background, it actively scans programs and files and carries out the appropriate actions whenever it detects anything malicious.

Can I Stop Svchost exe Windows 10? ›

Right-click the same svchost.exe process and choose End task. If that doesn't work, open Process Explorer and right-click the svchost.exe file, and then select Kill Process to shut it down. If there are services nested in the svchost.exe file, open them in Task Manager like explained above, and stop each of them.

How do I turn off Microsoft Common Language? ›

To resolve this issue you may follow these steps:
  1. Open Windows Services; right-click on Start > click on Run.
  2. In the Run box type services. msc and click on Ok.
  3. Look for the service Microsoft Common Language Runtime service and right-click on it.
  4. Stop the service by selecting the option to stop.

How long does NET runtime optimization take? ›

Typically, after you install the . NET Redist, it will be done with the high priority assemblies in 5 to 10 minutes and then will wait until your computer is idle to process the low priority assemblies.

Can you end service host Windows Update? ›

You need to navigate and double click the Windows update service. Go to the General tab, find Startup type, then select Disabled. Click Apply, then OK. Go back to Task manager, then end the Service Host: Local System task.

How do I disable Mscorsvw exe? ›

A quick way to Stop mscorsvw.exe from high CPU usage on Windows 10 or Windows 7
  1. Open Windows PowerShell and run it as an administrator.
  2. Type this command and press enter. ...
  3. After this, set the Execution policy to remote signed Set-ExecutionPolicy RemoteSigned.
  4. Press [A] to say Yes to all to proceed.

What is Microsoft compatibility telemetry high CPU? ›

The Microsoft Compatibility Telemetry high disk usage or high CPU problem may be caused by corrupted system files. To resolve the issue, you can run the SFC scan to find and replace damaged system files related to Microsoft compatibility telemetry.

What is a runtime broker in Windows 10? ›

Windows 10. Runtime Broker is a Windows process in Task Manager that helps manage permissions on your PC for apps from Microsoft Store. It should only use a few megabytes of memory, but in some cases, a faulty app might cause Runtime Broker to use up to a gigabyte of RAM or more.

Why does Wsappx use CPU? ›

It seems that the high CPU issue caused by Wsappx does not have direction relation with drivers, and yet outdated or corrupted device drivers indeed cause issues. If your computer keeps trying to update drives automatically in the background and the Wsappx process may turn to unresponsive and occupy CPU resources.

How do I close a CTF Loader? ›

Here's how: Press Windows+R, type services. msc, and then click OK. Scroll through the list, right-click on Touch Keyboard and Handwriting Panel Service, and then select Stop.

What is Windows Installer worker? ›

Windows Module installer worker is an important PC tool that helps the PC to check the windows updates automatically. It is an essential tool if you want Windows to check for the updates automatically on your PC or laptop because it automatically runs while checking for, and installing, any Windows Updates.

What is antimalware service executable in Windows? ›

Antimalware Service Executable is one of the background-running services in Windows Defender. It's also known as MsMpEng.exe, you can find this on the Details tab in your Task Manager. Antimalware Service Executable is running to scan the malware and spyware when you access them.

How do I disable .NET Framework? ›

To disable the computer's Microsoft .NET Framework:
  1. Access the Control Panel, click on Programs and then on the option Turn Windows features on or off;
  2. Select Microsoft .NET Framework 4.8;
  3. Uncheck the selected box and click OK;
  4. Wait while the feature is disabled;
  5. Click Close. Microsoft . NET Framework has been disabled.
29 Nov 2021

How do I remove .NET Framework from Windows 10? ›

Windows 10 and newer
  1. Close all open programs.
  2. Open the Windows Start menu.
  3. Type "Control Panel" into the search and open Control Panel.
  4. Go to Programs and Features.
  5. Select Uninstall a Program. Don't worry, you aren't uninstalling anything.
  6. Select Turn Windows features on or off.
  7. Find . NET Framework on the list.

Where can I find .NET Framework on my computer? ›

The version of .NET Framework (4.5 and later) installed on a machine is listed in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full.

Is it OK to disable antimalware service executable? ›

It's completely okay to disable the process and even Microsoft Defender. While it's built in, you're not required to use it. Before you do this, though, install an alternative antivirus tool; otherwise, you're leaving your system vulnerable.

How do I lower my CPU usage? ›

Fortunately, there are a number of ways you can free up CPU resources on your business PCs.
  1. Disable extraneous processes. ...
  2. Defragment the hard drives of the affected computers on a regular basis. ...
  3. Abstain from running too many programs at once. ...
  4. Remove any programs your employees don't use from your company's computers.

Is it safe to disable Windows Defender? ›

On its own, it is entirely safe to disable Windows Defender. The problem arises when you disable it without providing a replacement. Make sure you have another security suite set up—and of course the onus is still on you to practice sensible safety precautions.

Is it OK to disable svchost? ›

The short answer to this is a definite, strong “no!” Do not force any svchost process to stop! They're vital for Windows to do its job properly.

Why is svchost.exe using so much CPU? ›

In the rest of the cases, the Svchost.exe (netsvcs) high CPU or Memory leak problems, can be caused by a Windows Update, or by a full Event log file or by other programs or services that start many processes during their execution.

What happens if I stop svchost? ›

Shutting down svchost.exe may cause problems with your PC. If it is taking up large amounts of CPU power or causing high network traffic for extended periods of time you may have a memory leak, virus, or may need to reinstall certain software.

Which of the following services are provided by the common language runtime? ›

The CLR provides additional services including memory management, type safety, exception handling, garbage collection, security and thread management. All programs written for the . NET Framework, regardless of programming language, are executed in the CLR.

What is service host local system? ›

Service Host: Local System is a bundle of system processes, or call it a generic service hosting container. It includes processes including Windows Auto Update and many required system services would be running in it.

What is Mscorsvw? ›

Mscorsvw.exe is a component of Windows, and is otherwise known as the . NET Framework Optimization Service. It optimizes your machine to launch apps faster. Most of the time, users do not notice mscorsvw.

What is system Host SysMain? ›

Service Host SysMain is formerly known as Superfetch. This utility is a native Windows 10 service that works to help optimize system performance. Service Host: Local System is a bundle of system processes, including Windows auto-updates and other Windows system applications that run in the background.

How do I fix high CPU usage by Service Host local system? ›

Fix: High CPU Usage by Service Host: Local System (Network Restricted)
  1. Repair Corrupt System Files.
  2. Disable the Superfetch Service and Background Intelligent Transfer Service.
  3. Fix the Memory Leak in the Non-Paged Pool of Memory.
  4. Running the System File Checker.
  5. Performing a Clean Boot.
25 Sept 2022

Why is my computer disk usage always at 100? ›

Running lots of applications at once may cause 100% disk usage in Windows 10. Uninstalling these programs often isn't possible, because you may need them. Manually pausing the background apps is only a short-term solution, as many will restart upon bootup or run quietly in the background.

How do I permanently disable Service Host? ›

In the Windows Service Manager, locate the Sysmain entry. Double-click it and set the Startup type status to Disabled. Click OK, then reboot your system. Service Host Superfetch will be disabled.

What is Microsoft Compattelrunner? ›

compattelrunner.exe is part of the Microsoft Windows telemetry system. This system collects usage and performance data to Microsoft so they can understand how people use Windows, then improve it.

What is NGEN exe? ›

The Native Image Generator (Ngen.exe) is a tool that improves the performance of managed applications. Ngen.exe creates native images, which are files containing compiled processor-specific machine code, and installs them into the native image cache on the local computer.

What is Taskhostw exe? ›

Taskhostw.exe is a type of EXE file associated with Windows 10 Operating System developed by Microsoft Corporation for the Windows Operating System. Taskhostw.exe problems can be attributed to corrupt or missing files, invalid registry entries associated with Taskhostw.exe, or a virus / malware infection.

Should I turn off Microsoft compatibility telemetry? ›

It periodically sends the data to Microsoft for future improvement of the system and to enhance the user experience. We would suggest you do not disable this service.

Should I disable telemetry Windows 10? ›

Is It Safe to Disable Telemetry? Yes, there are no inherent risks to disabling telemetry. Microsoft uses telemetry to collect data from users with a goal to improve user experience with future updates. The telemetry system has so far been accepted as a legitimate way of enhancing the Windows experience.

How do I turn off Microsoft Telemetry? ›

Disable Telemetry Collection on Windows 11

Open the Start menu and click the Settings icon. Next, click Privacy & security and then Diagnostics & feedback from the list on the right. Expand the Diagnostic data option and toggle off the Send optional diagnostic data option.

What happens if I end runtime broker? ›

Unlike other major system processes like csrss.exe, ending the Runtime Broker process won't break your PC, but Windows will automatically restart it after a few seconds. It can't be permanently disabled, but disabling it isn't something you should want to do, either.

How do I remove runtime broker exe? ›

STEP 2 – Click on System .
  1. STEP 3 – Select Notifications and actions. ...
  2. Step 4 – Now, Go to Privacy -> General in Settings panel. ...
  3. Step 5 -Similarly click on speech and turn off all items on right side. ...
  4. Method 2 – Using registry editor disable runtime broker. ...
  5. 3 -Go to following path in registry editor.
20 Jul 2021

How do I clear my RAM cache Windows 10? ›

How to Clear RAM Cache Windows 10/11
  1. Press Ctrl + Shift + Esc shortcut to open the Task Manager window and click on More details to access the full view.
  2. In the Processes tab, click on the Memory header to sort from most to least RAM usage.
  3. Right-click the progress that takes up much RAM, and select End Task.
23 Sept 2022

Is it okay to End Task Wsappx? ›

Windows considers WSAPPX a vital system process. Thus, if you try to end it via the Task Manager, it warns you that ending the process can cause Windows to become unstable and shut down.

Why is CPU so high? ›

High CPU usage by the "System" process can often be caused by a hardware driver issue (bug, old version, incompatility etc). The System process loads (or hosts) multiple hardware drivers from different vendors that require higher level of memory access.

Is it safe to End Task Wsappx? ›

The wsappx task can be terminated in Windows Task Manager. If you select it and then end task it is killed. Since this does not affect startup types it may appear again at any time though which means that it is more of a temporary solution than something that works permanently.

Do I need net runtime optimization? ›

NET Runtime Optimization Service, also known as Mscorsvw.exe, is component of Windows. It is used to optimize your machine to launch apps and program faster. Normally the . NET Runtime Optimization Service will not cause high CPU but if the optimization process takes too long, it may cause high CPU usage.

Why does Antimalware Service eat CPU? ›

The main reason that antimalware service executable uses too much CPU is that it runs constantly in the background. While running in the background, it actively scans programs and files and carries out the appropriate actions whenever it detects anything malicious.

How do I disable Mscorsvw exe? ›

A quick way to Stop mscorsvw.exe from high CPU usage on Windows 10 or Windows 7
  1. Open Windows PowerShell and run it as an administrator.
  2. Type this command and press enter. ...
  3. After this, set the Execution policy to remote signed Set-ExecutionPolicy RemoteSigned.
  4. Press [A] to say Yes to all to proceed.

Can I Stop Svchost exe Windows 10? ›

Right-click the same svchost.exe process and choose End task. If that doesn't work, open Process Explorer and right-click the svchost.exe file, and then select Kill Process to shut it down. If there are services nested in the svchost.exe file, open them in Task Manager like explained above, and stop each of them.

How long does NET runtime optimization take? ›

Typically, after you install the . NET Redist, it will be done with the high priority assemblies in 5 to 10 minutes and then will wait until your computer is idle to process the low priority assemblies.

How do I turn off Microsoft Common Language Runtime? ›

To resolve this issue you may follow these steps:
  1. Open Windows Services; right-click on Start > click on Run.
  2. In the Run box type services. msc and click on Ok.
  3. Look for the service Microsoft Common Language Runtime service and right-click on it.
  4. Stop the service by selecting the option to stop.

Can you end service host Windows Update? ›

You need to navigate and double click the Windows update service. Go to the General tab, find Startup type, then select Disabled. Click Apply, then OK. Go back to Task manager, then end the Service Host: Local System task.

Is it OK to disable antimalware service executable? ›

It's completely okay to disable the process and even Microsoft Defender. While it's built in, you're not required to use it. Before you do this, though, install an alternative antivirus tool; otherwise, you're leaving your system vulnerable.

How do I lower my CPU usage? ›

Fortunately, there are a number of ways you can free up CPU resources on your business PCs.
  1. Disable extraneous processes. ...
  2. Defragment the hard drives of the affected computers on a regular basis. ...
  3. Abstain from running too many programs at once. ...
  4. Remove any programs your employees don't use from your company's computers.

Is it safe to disable Windows Defender? ›

On its own, it is entirely safe to disable Windows Defender. The problem arises when you disable it without providing a replacement. Make sure you have another security suite set up—and of course the onus is still on you to practice sensible safety precautions.

What is Mscorsvw exe used for? ›

Mscorsvw.exe is a component of Windows, and is otherwise known as the . NET Framework Optimization Service. It optimizes your machine to launch apps faster.

What is Microsoft Compattelrunner? ›

compattelrunner.exe is part of the Microsoft Windows telemetry system. This system collects usage and performance data to Microsoft so they can understand how people use Windows, then improve it.

What is NGEN exe? ›

The Native Image Generator (Ngen.exe) is a tool that improves the performance of managed applications. Ngen.exe creates native images, which are files containing compiled processor-specific machine code, and installs them into the native image cache on the local computer.

Is it OK to disable svchost? ›

The short answer to this is a definite, strong “no!” Do not force any svchost process to stop! They're vital for Windows to do its job properly.

Why is svchost.exe using so much CPU? ›

In the rest of the cases, the Svchost.exe (netsvcs) high CPU or Memory leak problems, can be caused by a Windows Update, or by a full Event log file or by other programs or services that start many processes during their execution.

What happens if I stop svchost? ›

Shutting down svchost.exe may cause problems with your PC. If it is taking up large amounts of CPU power or causing high network traffic for extended periods of time you may have a memory leak, virus, or may need to reinstall certain software.

Top Articles
Latest Posts
Article information

Author: Edmund Hettinger DC

Last Updated:

Views: 5860

Rating: 4.8 / 5 (78 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Edmund Hettinger DC

Birthday: 1994-08-17

Address: 2033 Gerhold Pine, Port Jocelyn, VA 12101-5654

Phone: +8524399971620

Job: Central Manufacturing Supervisor

Hobby: Jogging, Metalworking, Tai chi, Shopping, Puzzles, Rock climbing, Crocheting

Introduction: My name is Edmund Hettinger DC, I am a adventurous, colorful, gifted, determined, precious, open, colorful person who loves writing and wants to share my knowledge and understanding with you.