Mscorsvw.exe high CPU usage on Windows Server 2012

I sometimes really hate Windows. When you do obligatory updates sometimes it takes hours for operating system to settle down and stop using CPU and memory like crazy.

One of these processes are mscorsvw.exe and ngen.exe which do some .NET assemblies optimization. I read about a lot of angry posts about these processes and that it takes hours “to optimize” and during these hours your server and services on it are suffering (and you need to be clever when finding explanations to your clients).

Follow these steps:

  1. Navigate to the following location in Windows Explorer: C:\Windows\Microsoft.NET\Framework\v4.0.30319
  2. Run an elevated command prompt and change the current directory to the following directory
  3. Type ngen.exe executequeueditems, and press ENTER
  4. Wait until you receive the following message at the command prompt: All compilation targets are up to date.

This annoying processes stopped but now TiWorker.exe is taking his time and eating the CPU and Memory and it looks like it will take 3-4 hours. Yikes! I really hate Windows programmers for this hidden background CPU and Memory eaters.

Leave a Reply

Follow

Get every new post delivered to your Inbox

Join other followers