mscorsvw.exe (a.NET optimization that precompiles assemblies) is taking up a substantial percentage of my CPU - 50-100%.
This article (and many others) say that
ngen.exe executequeueditems
From the command line should kill it. For me, that command just hangs. Is there some better way to kill this process?
I have not tried rebooting. I've seen my CPU utilization spike up more than once in the last few days, and I suspect this has been my problem; I'd like to know how to kill it going forward.
Try
ngen queue status
Hopefully is shows more than just "I'm running" and shows what it is trying to compile. The ngen queue stop
command will stop the service.
This service starts running when an installer deployed an assembly and asked the service to pre-compile it with ngen install
. Clearly you've got a bad one on your machine, I'd guess that it is failing over and over again to compile an assembly. Check the Windows event log for a breadcrumb about this. Uninstall the program that did this.