This post was written by Rich Lander, a Program Manager on the .NET Framework Team. It was written for people who want to understand why mscorsvw.exe is running on their machines and want to know how to speed it up.
Have you noticed that your machine is slowing down, and you’ve looked in Task Manager to find that mscorsvw.exe is the culprit? If so, this post will help you resolve those performance issues. 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. If you are noticing it and would like it to stop affecting your computer’s performance, we recommend that you run the script provided below. This script will cause mscorsvw to run at maximum speed in order to complete its work faster, and will likely slow down your machine during that period of time. Once the script has completed its work, it will close itself. If you notice mscorsvw again, you can re-run this script, however, we hope you don’t need to do that.
- Click here: .NET Framework optimization speed up script
Upon clicking the link above, you will need to click through a set of dialogs asking you to open and run the script. Please do that. If you get asked which program to run the script with, choose the Windows Script Host. On Windows XP, you will need to save the script to your desktop (or another location on your computer) before running it (just double click on it).
Why do I need mscorsvw and the .NET Framework?
Millions of software developers around the world choose to write apps using the .NET Framework, which is provided by Microsoft. You’ve probably used many apps built with the .NET Framework without even knowing that. The .NET Framework includes a technology called Native Image Generator (NGEN) that makes apps launch much faster and that periodically does work to optimize your machine. You can read more about this technology in a related post: Got a need for speed? .NET apps start faster.
How can I tell if mscorsvw is running?
Task manager can tell you which apps or services are running on your machine and how much machine resources they are using. You can see mscorsvw.exe in Task Manager, highlighted below. You might see more than one reference to mscorsvw.exe in Task Manager. That’s OK and part of how it normally operates.
How often and when does mscorsvw run?
The .NET Framework optimization service runs at two main times:
- When the .NET Framework is installed on your machine.
- When the .NET Framework is serviced by Windows Update.
The first case doesn’t happen very often. The .NET Framework comes with Windows, so you often already have the .NET Framework version you need to run a given app. The second case happens more often. We update the .NET Framework a handful of times of year, usually to improve security. These updates will typically occur on a “patch Tuesday,” if you are familiar with that term.
We try to update and optimize the .NET Framework during the night (specific to each time zone), while most people are sleeping. Sometimes, it isn’t possible to do that, particularly if a machine is turned off. As a result, the .NET Framework is sometimes updated during the day, which then requires the .NET Framework Optimization Service to run during the day, too. When that happens, you might notice the service running and possibly slowing down your machine for a period of time. You might wonder why this is happening, since the .NET Framework Optimization service runs in the background.
In Windows 8, we changed the .NET Framework Optimization Service, to operate in more of a silent mode. It only does work during idle time (when you are not actively using your computer). That means that you should never notice it, even if it is operating during the day.
Can I disable or turn off mscorsvw?
We do not recommend turning off or killing the .NET Framework Optimization Service in Task Manager. It is performing an important task for your machine and will help your apps launch much faster, once it’s done that work.
However, you can speed up the .NET Framework Optimization Service. By default, it only uses one CPU core. Instead, you can tell it to get its work done as quickly as possible by using more cores (currently, it will not use more than 6). That way, it will get its work done faster, and you can get on to other things.
You can run this .NET Framework optimization speedup script (same one as provided above) to tell the .NET Framework Optimization Service to speed up. If you prefer PowerShell and have it installed, we’ve also provided a PowerShell script to speed up the optimization service. You will need to download the script to your machine, and call it from an admin PowerShell command prompt. The script needs to run under either RemoteSigned or Unrestricted PowerShell execution policy.
Note that the majority of the speed up occurs for the .NET Framework 4. If you only have the .NET Framework 2 or 3.5 installed, the speedup effect will be more minor.
Tell me more about the script. What are the mscorsvw commands?
The scripts we’ve provided are a convenience for people who don’t want to deal with a command prompt. If you prefer to use the command prompt, you can use the commands below instead. These commands depend on the version of the .NET Framework you have installed and the version of Windows that you have and whether it’s 32-bit or 64-bit.
- .NET 4, 4.5, or 4.5.1 Preview on Windows 7 or earlier:
c:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe executeQueuedItems
On a 64-bit operating system, add:
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe executeQueuedItems
- .NET 4, 4.5, or 4.5.1 Preview on Windows 8 or 8.1 Preview:
c:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe executeQueuedItems
schTasks /run /Tn "\Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319"On a 64-bit operating system, add:
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe executeQueuedItems
schTasks /run /Tn "\Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319 64" - If you don’t have .NET 4 or later installed, but you do have .NET 2.0 or 3.5, use this command instead:
c:\Windows\Microsoft.NET\Framework\v2.0.50727\ngen.exe executeQueuedItems
On a 64-bit operating system, add:
c:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe executeQueuedItems
These commands assume that Windows is installed on the C drive. If that’s not the case, you can change the drive letter, or use the %windir% environment variable (ex: %windir%\Microsoft.NET\Framework\v4.0.30319\ngen.exe executeQueuedItems)
These commands must be typed from a command prompt that you have “run as administrator”. If not, you will get an error message that directs you to run the commands with administrative credentials.
Summary
The .NET Framework is installed on over a billion machines and is used to run millions of apps every day. On the .NET Framework product team, we focus on making those apps launch as quickly as possible. A big part of how we do that is by optimizing both the .NET Framework and the apps that run on it. This optimization needs to be done on your machine a handful of times a year, due to updates to the .NET Framework.
You can learn more about .NET Framework optimization in our other post on this topic: Got a need for speed? .NET apps start faster.
I see three instances of mscorsvw in my task manager. What's with all the copies?
@dbsoccer — In the typical case, you will see two copies of mscorsvw, but only 1 will do any real work. If you run the script we provided, or manually call ngen executeQueuedItems , then you will see it run more aggressively, using up to 1 instance per core on your machine. Usually you use threads to take advantage of extra cores, however, that's not what we did in this case (due to a set of design constraints).
After using the speed up command and after finishing all queued items I still have 2 processes running, is that normal?
So why does my firewall tell me it wants access to the internet all by itself if Windows Update satisfactorily patches it? Must be safe to block then because you didn't describe it requiring network access at any point in this rather descriptive article.
Have yoi Developers any idea, what this piece of crap and how usefull it is on old single core machine running Win XP?? Why does this runs automatically when updating Win. It completely ruined my work, since the computer went to no speed at all.
@Antonio — those processes should eventually go away. As long as they don't show that they are using any CPU, it isn't a problem.
@curiosity — I don't know why there is any network access. The script we provided doesn't need or use the network for anything.
@blindmelon — this script might not help on an older single core machine. Sorry that your machine slowed down.
You say "We do not recommend turning off or killing the .NET Framework Optimization Service in Task Manager. It is performing an important task for your machine and will help your apps launch much faster, once it’s done that work."
Actually it would be great if apps launched faster, but it takes a minute or so to run a standard program like my browser because mscorsvw is taking up all the CPU time. Besides the CPUs heat up and the fan becomes very noisy. I consider this behaviour criminal for a desktop (actually laptop) machine.
<rant>
I have a fresh Windows 7 install on a middle-of-the-road laptop – 4GB memory, core i5 CPU. It is supposed to replace my wife's ten (perhaps twelve) years old laptop that runs Windows XP. One goal is to give her a faster PC. I think that with all the stuff that is running in the background, and the obsession of Windows to download and install at least ten patches per day, I will have a hard sell and she will want her old PC back.
</rant>
In short, don't tell me that mscorsvw shouldn't be turned off. Just tell me how to do it.
By the way, Rich, while I am frustrated with your company's products, I do appreciate your going at great lengths to explain what happens behind the scenes and offering workarounds. Sincere thanks.
Now I am really pissed this thing as been going for over an hour for now.. I CANT SIMPLY DO NOTHING WITH MY COMPUTER THE MEANWHILE … it really makes me mad… what the hell is this BS I DONT WANT THIS … MS you are a cancer!
Tried the script too, still running after an hour. Tried to kill mscorsvw process, but it keeps coming back to life. You're optimizing my system? No, you are making it unusable. Typical Microsoft.
I'm puzzled because first we are told running the script will speed the process up, then later, lower down the blog it says that this is achieved by using more than one CPU core. Correct me if I'm wrong, but can I assume that if your computer's CPU has only one core like mine the script will have no effect?
reason to scrap windows and then get a real operating system …
I've tried running the script above and also using the ngen.exe executeQueuedItems command run from the command prompt as an admin, but it only gets so far and then I get the following message:
Catastophic failure <EXCEPTION FROM HRESULT: 0x8000FFFF <E_UNEXPECTED>>
Any ideas on what is causing this / resolutions?
Hi,
Is it necessary to run both 32- and 64-bit optimization commands on a 64-bit OS? For example, do I need to run BOTH of these commands below… or will the first one be sufficient to compile both 32- and 64-bit .NET apps?
C:WindowsMicrosoft.NETFramework64v4.0.30319ngen.exe executeQueuedItems
C:WindowsMicrosoft.NETFrameworkv4.0.30319ngen.exe executeQueuedItems
In case anybody needs it, I created a small PowerShell script (link below) to find the latest version of the NGEN command and run it. I'm just not sure if I need to run the 32-bit command on a 64-bit OS.
http://poshcode.org/5136
thanks,
Scott
How long does it take before the .NET Framework Optimization Service is complete? My machine just received the 4.5.1 version and it has been running at max CPU for over an hour.
@Brian L — An hour is a long time, for sure. It depends a lot on your machine. If you have a modern machine with multiple cores, then that's a really long time. If it is an older machine, then that's closer to understandable, but still a long time. In any case, my apologies that it is taking so long!
Rich Lander
.NET Program Manager
You know, you could just ship all your products as C++ source code and release them with a C++ compiler so that whenever you fix bugs then Windows would just recompile them from scratch. It'd be just as fast as this braindead .NET Runtime Optimization Service.
I have a Server running Windows Server 2008 R2 that has this process running. It has been using 25% of the CPU for 125 hours and 38 minutes so far. I just launched the script you provided about 5 minutes ago and I don't see a change. It's still just using 25% of the cpu. It's not really causing me any major problems, so I'll continue to let it run, but I wondered if it's normal for it to be running for this long. I tried searching the internet for how long it's supposed to run typically, but I keep just finding posts like this one about how to speed it up. Thanks so much!
Just an update. 6 or 7 hours later cscript is still running that script, but I still can't tell if it's doing anything or not. And mscorsvw has been using 25% CPU for 132 hours and 32 minutes. Again, I don't mind waiting, as long as it is going to finish eventually. Just wondering if that's likely the case or not.
Now at 244 hours and 5 minutes, for what it's worth. I'll stop updating here, until it finishes or I decide to cancel it.
PLEASE HELP
Been working on this for a week
Problems – operations are very slow – seems frozen but is actually running very slow. Basically unusable.
Hardly any CPU usage – sucks up all the RAM
TASK Manager shows that mscorsvw.exe is consuming most of the RAM: 5-7 GB of the 7.9 usable.
I've checked for viruses with Security Essentials and Malware bites – non found. All updates have been completed. searching for help on the web – some of the articles found said that this program will stop after it is done "optimizing" -I tried a link that said it would speed the process up – no change.
It has been running for a week – no change.
Also- many of the posts seem to be referring to Servers – do I need this on a laptop?
I have a Dell inspiron N7110
64 bit
8GB RAM & 911 GB hard drive (with 856 GB Free)
I'm thinking about re-imaging with the recovery disc –
Please advise.
Thanks
you suck microsoft. writing a blog article about why all of our machines should crawl to a hault! damn, this is why you guys can't do anything right. rotten to the core.
Update on my earlier posts… After 433 hours I decided to try to stop the service, but I can't. I tried to kill the process, I can't. I tried process explorer, and see a thread with start address "sechost.dll!I_SclsSecurityProcess+0x248" that has been running since 5/8/2014 with 10 minutes and 44 seconds of User Time and 433 hours and 29 minutes of Kernel Time, which I can't kill… So I guess it's waiting for something from the Kernel and that's why I can't kill it. But I don't know what it's doing and I can't find any log files for it. I tried process monitor to see if I could see it writing to a log file or something, but I see nothing. So, I guess I'll need to reboot the server, but I can't do that right now… In the meantime I guess it'll have to continue eating 25% cpu and doing nothing.
Hi, mscorsvw has been running on my machine for over 6 hours. I ran the provided script and it did a bunch of stuff and then just stopped, I had to manually exit it. It seemed to have finished but there is still a mscorsvw process taking up 25% of my CPU. What's up with that? I ran the script and it ran at 50% CPU for about 10 mins before the script stopped. Now I'm left in the same situation I was in before with this program that has been taking up 25% of my CPU for the last 6 hours with no changes at all.
I've tried manually executing the "ngen.exe executequeuditems" command in the CMD but keep getting slammed with a "ngen is not a valid win32 application". Likewise, I enter the path first and then the ngen command but get slammed with "<path> is not recognized as an internal or external command"
I do a decent amount of gaming on my laptop and 25% of my CPU being used is impacting the performance of my games, and it is getting really annoying. Is there any way to fix this? Is there a problem with the program and some sort of repair I can run on it to get it working correctly? Any help would be appreciated
It's almost a week since the last reply. I'm also facing this problem on a Windows Server 2008R2 with all the latest updates. It's one of two management machines, and the other doesn't (seem to) have any issues. I'm running the provided script for hours now, but I don't see any progress.
In task manager I can see ngen.exe with no processor utilization and just 1.6Mb of memory. Mscorsvw.exe is now at ease, but it looks that it starts for every user that makes a connection to it.
So Microsoft, have you abandoned this issue, or do you have any other advice?
Why is it always your retarded products that are the culprits for cramping my cpu and needlessly heating up my machine? No permission was asked, no message telling what the hell it's doing, no nothing. I got work to do at the the time that "most people" are sleeping, because, guess what, that's the only godamned time I have to do it.
At least let the users do the updates WHEN THEY WANT TO!
My system will NOT update .net security items. I have tried repairing it, remove it for a later re-install, and a couple of other things. Now I'm getting :: Exception Processing Message 0xc0000005 parameters
0x000007FEFCBA718C (this address repeated 3 more times!)
Any ideas?
@Jay
Can you help send the information (KBs + logs) on the failures you are seeing with the .NET updates to netfxsetup@microsoft.com and we can then try and investigate further?
You can provide logs from the machine as per below:
a) Repro the scenario
b) Download and run the diagnostic tool from an elevated command prompt: http://www.microsoft.com/…/details.aspx
c) Share the vslogs.cab log file generated by this tool, which can be found here: %temp%vslogs.cab
Thanks,
Vivek Mishra – MSFT
.NET Program Manager
This is crap programming! Everybody hates uncontrolled background processes eating up cpu resources. Learn how to write GOOD software…
The great thing is that after running flat out and thrashing disc for so long it renders the issue of running anything faster rather moot. I've got a pegged CPU and solid drive light going on 2 hrs. Any more 'optimization' and I can throw the laptop away.
With Linux such things do not happen !
I just read all the comments, to date (9-13-14). While I appreciate Mr. Lander's description and so-so attempts to help folks with this, I would like to know if anyone has had any GOOD luck with this "speed-up" script. If so, please post a reply here. At this moment mscorsvw is not using any CPU but is using about 8K of RAM on my laptop.
Also: does anyone know of a way to get rid of this process?….and permanently block any re-install? Mike Griffin
The script did not work for me (64 bit Win 7 on 3.5 .NET) as it would not execute once the console had been pulled up, but the 64 bit command for the 3.5 and 2.0 framework did just fine. It cleared CPU use form high 90% due to mscorsvw down to acceptable levels (average 1-20%) So thank you for the commands!
What utter bullshit. Who wants things "optimized" when the very act of optimizing reduces the computer to a crawl.
So you´re telling me "We do not recommend turning off or killing the .NET Framework Optimization Service in Task Manager. It is performing an important task for your machine and will help your apps launch much faster, once it’s done that work."
Very customer focused, Microsoft. Ever imagine that users may have to perform an important task in the foreground when they power up their system?
Just to shed some happy news, I came here with the hope that there would be a solution. I found that the script in fact helped me and It only took 20 min 🙂 . From what I can tell it looks like it goes through the global assembly cache and does it optimizations. I currently have the .net framework 2.0 – 4.5 with Visual Studio 2010 and 2013 installed. I also have a large bundle of third party assemblies like DevExpress and what not.
In case it helps others below is what I have done
1) downloaded the script
2) opened an elevated command prompt (win7 press start>>type cmd>> right click the search result>> Run As Administrator.
3) changed directory to the download folder ( cd C:users<username>Downloads )
4) typed "cscript 7318.DrainNGenQueue.wsf"
I know there are a few other ways to run the script, however I find the way I described best.
I do a lot of .net development for a fortune 500 defense company with UAC enabled environments and strict security policies. I have been challenged in the past with .net in our environment, and I so far have been successful with these challenges <knock on wood>.
Oh, and one more thing, Microsoft is not that bad, sure they have had some rough times but they do still own a majority of the PC world, and with any large company there are large problems.
Personally, I think you MS guys are doing fine.
-K
Found a way to get rid of "it"… If you go into your add/remove programs (or whatever it is called in Win7) and look for programs installed around the time you noticed the issue, you will see something with C++ in the name. I think it was Visual Studio something C++ Redistributable… I uninstalled that, rebooted, and the culprit didn't open and cause my hard drive to go into over drive while sucking up 35% of my CPU and a gig and a half of my memory. I feel a few re-boots might be needed to be 100% sure the lil beasty is gone but I feel fairly certain so far.
For reference, I just noticed this for the first time when booting up 15 minutes ago. I am on an older i7 (virtual 8 core) desktop with 6 GB of RAM running Win7 Ultimate SP1. When I sorted installed programs (from control panel, Programs, Uninstall a Program) by date installed, the C++ Redistributable was the last installed program but it showed being installed on 10/05, twelve days ago.
@Microsoft
Y'all should really have noticed this issue during testing and not have allowed this update to be released. Based on some of the stories it sounds like this could be damaging some people's hardware. To only advise End Users to "run a script" is also one of the weakest resolutions I have ever heard; I actually laughed out loud when I first read it. I can't see why you don't just make another update like the one that installed the program to remove it? You want to make use End users happy? Give us XP back and quit touching stuff.
I have an instance on a Windows 2012 R2 server that keeps opening and closing constantly. It's been like this for nearly a week now, using 100% CPU in the process. ngen.exe is the parent process.
mscorsvw.exe -StartupEvent 3fc -InterruptEvent 0 -NGENProcess 444 -Pipe 434 -Comment "NGen Worker Process"
Is this normal? There were .NET Updates in the last batch of Windows Updates. Has something gone wrong here as everything 'works' normally apart from this.
Having every windows based machine spend hours "optimizing" after such an update is extremely inefficient. Whoever designed this should be fired.
I have a small enterprise environment only 200 so Windows servers running as Virtual Machines on top of HyperV. So when I try to push updates using WSUS. The Updates take forever. Partially due to this service. Why not have WSUS gather info about the destination servers and deploy packages that are already optimized??? It is like Microsoft doesn't want System Admins to get any sleep.
For me the proccess ran for about 20 minutes (without the use of this script) taking up all my CPU.. After seeing the comments here i got a little scared..
But after 20 minutes it was just done…
Server 2012 r2 standard
Get all this .NET along with its "optimization" and push it in your ass. Microsoft is slowing down my computer with this useles thing. Why you don't optimize it on your servers and give it to us already optimized??? Why every pc with windows must do this exercise alone??? Do you have some IT Architect in Microsoft or do you have only programming monkeys??
My Windows 8.1 experiences this all the time, and it is not correct which is stated above
QUOTE
In Windows 8, we changed the .NET Framework Optimization Service, to operate in more of a silent mode. It only does work during idle time (when you are not actively using your computer). That means that you should never notice it, even if it is operating during the day
UNQUOTE
this just happened during start up and leaved the machine useless for minutes.
Microsoft has obviously not understood that an operating system is there to SERVE THE USER and not to render the system useless for minutes because they need to do some background service
I fire up Windows only once in a blue moon (for apps whose programmers didn't know any better).
What happens then is ALWAYS the same: unusable for about an hour (uncommitted updates, scan-the-crap-out-of-me etc.), two or three blinks of getting work done and then "don't turn me off, I'm updating" for another hour, Oh, I almost forgot: boot cycling a couple of times beforehand because some updates couldn't update themselves while being updated in preparation for other updates.
In essence, Windows takes about two to three hours to boot into a usable state. Consistently. On the sunny side, while it's minding its own business, I can deploy from six to seven Linux machines (with a full blown office suite readily installed), thanks to MS. Think positive!
"This optimization needs to be done… a handful of times a year.". Oh really? Try every damned day. And it comes back after deletion, over and over and over. Typical microsh*t.
Poor design, why is my machine performing cpu intensive compiling with no notification whatsoever
Scipt worked fine for me (fresh install+updates of Server 2012 R2).
Process had been running for a while on 25%+ which is what lead me to this post. The thing about "trying to do it at night" is simply not true, it started immediately after updates were installed 🙂
Anyway, ran it in admin cmd with "cscript 7318.DrainNGenQueue.wsf", process completed in 5 minutes and the CPU load is back to normal again 🙂
It took nearly 45 minutes for my virtual machine to complete the speedup script. I'm wondering how such a speedup really means to the production environment.
This sounds like a nasty fixup routine. How can something that is meant to speed things up, actually be so detrimental to system performance. I am seeing it consume more than 50% CPU and also something it does actually freezes SQL Server (its CPU usage drops to 0% for moments) whilst mscorvw is at high CPU.
Windows 2012. Server has been up for weeks, this is running in the day. Typical crap we come to expect with everything surrounding .net
This made my older laptop unusable. Folks at MS, perhaps you should test it with lower specs computer and see how it destroys its usability.
Here's real fix: Remove .NET 4.x unless you know you have app that uses it.
I have mscorsvw running on a older Samsung q330 laptop (win7 64bit). the "service" is constantly usin 25-30% of my CPU.
I feel i have tried everything
-Let the laptop stay on for a whole night (8 or so hours) to let it so it's thing. When i checked it in the morning – mscorsvw was still running.
-manually typed in the c:WindowsMicrosoft.NETFramework64v4.0.30319ngen.exe executeQueuedItems via cmd,
But the ngen program apparantly does not exist in the folder.
-Tried uninstalling .net framework 4.5.2 from remove programs in controlpanel.
-running the script provided in the tread.
-tried right clikting the mscorsvw to force close it in joblist.
Everytime I do that, 2 new mscorsvw pops up
This is soooo frustrating!
Would it help at all do make a clean install of windows? Would this terrible piece of crap not just install itself again?
Haaaalp!
I just ran the .NET Framework optimization speedup script again. After 5-10 minutes it says "All compilation targets are up to date"
But in taskmanager I can see that mscorsvw is still using 30 % CPU trying to optimize something..
i have to say thank you this actually worked, at first i was skeptical because when i clicked on the link and it notified me of the download it said this file could harm my computer but i said stuff it and download it anyway and i am glad i did i followed the instructions and presto it worked, all day i was looking for a solution and i found it on this site so thank you who ever you are i appreciate it
Thanks for what to run! From what I can tell when I ran this via command prompt, for mine at some point a .NET program got things stuck in the queue that couldn't compile correctly. I'm guessing that's why it appeared to become stuck in the background being bogged down on things that wouldn't compile right and not having the full resources available to clear the queue. For me the CPU was usually fine (worst case 20%) but it was causing Hard Faults in the memory and that was causing most of my performance problems. Gonna take a bit to to see how well it performs once these are out of the way for good, but the 32 bit alone reduced the page faults to almost nothing (given it was this thing mainly doing the darn page faults) and that alone provides considerable improvement.
guys, you can also try "ngen update" command to clear out these stupid processes (for both x86 and x64)
go to run, paste
sc delete clr_optimization_v4.0.30319_64
click ok
go to run, paste
sc delete clr_optimization_v4.0.30319_32
click ok
reboot
the damn thing will be gone.
p/s: do this only if you are vvvvvery frustated with the damn thing. The 'clr_optimization_vx.x.xxxxx_32' and 'clr_optimization_vx.x.xxxxx_64' are just example from my current configuration. Please check at your Computer Management->Services and Applications->Services and look for the entries. These are for x64 OS.
I'm still running an old XP PC and mscorsvw has also made my pc unusable. As a PC-Admin i know this tool is a service called by the "Microsoft .NET Framework NGEN v4.0.30319_X86"-Service. It should be OK to just DISABLE it in the Services. It Won't start probably anymore until next Windows-Update. As I'm running a german-Windows, i can't describe the right path to do so. Just google how to disable windows services.
I'm running windows 10 on my laptop and I have this problem. This service appears in task manager and uses the CPU. I have tried the script you provided and also the commands. But they didn't work. I'm really really angry about this. Please help me solve the problem. When I restart my laptop the service disappears, but after a while(maybe some days) it appears again. I really need your help.
I would just like to get on and use MY computer instead of having to wait for hours on end while Microsoft products do smart things that are of no particular importance to the work I have to do. Today has been one of the worst days in weeks. Update checkers kick in and chez up all the memory and all the CPU. The disk is reading and writting all the time to the point that the fan cant cope any more and the keyboard starts to get to be too hot to type with. It is stress, stress, stress, and for what ?
I could see seven or eight instances of mscorsvw, and all because of a .NET update, hours of difficulty, downloading the updates and installing then and configuring them to then have to wait wile mscorsvw spends over an hour more to do its stuff. I doubt if this will get through moderation.
Installed windows 10 pro upgrade on Dell Inspiron 1525…went very well..
But now it runs so hot, it shuts itself down!!!.. CPU running near 100% and cooling system cannot keep up
mscorsvw.exe is the reason
I keep reading were it should only run for a while and the shut itself down.
Is the any way to set the MAX CPU for this program?
Even with this script once I installed a software the utilized .net I haven't been able to use my laptop for 2 hours so far. What a f***ing joke. This kind of enforced "choice" is what drives people away from MS software.
mscorsvw.exe – How can I disable & uninstall this useless piece of crap? It provides 0% benefit while consuming at least 50% of my computer's CPU cycles forever – not just when the computer boots up. I read somewhere that program was needed if user wanted to access 'cloud services'. Well I don't – my only recourse now is to disable its Process Chain to get rid of the CPU load. Unfortunately, this 'service' restarts within a few hours from an unidentified stimulus. Help!!!
I was having this issue on my SQL server 2012 with framework 4.0(CLR and .NET Runtime Optimization eat my whole CPU). Tried the command, did not work(the cmd stuck for a while then bunch of errors, I don't remember what it is exactly). Tried patched Non Security Update for SQL Server 2012 SP1 (KB2793634), did not work either. Decided to just get the latest .NET framework. The issue persisted. But somehow I can run the command on ngen.exe. It just finished running. I don't know whether the issue is fixed or not
How did you write a 5 section essay and not actually mention what the does.
Fake example of what a process does: msdefrag.exe
Correct: The process optimizes the physical location of the files on you computer.
Wrong: The process is part of windows and administrative tools. If you run windows this process is part of windows.
This is stopping the CU updates on my exchange servers, I have wait for it to finish before I can continue. After an 8 hour day starting at 5:30AM on a WEEK END with 8 servers to CU, THIS SUCKS. Fix you shit so it knows to stop for server patches and app patches. Or add at to the task scheduler, at least that way I can pause it until the updates are finished. booger eating morons.
So, your solution of how to make mscorsvw.exe take up less resources, is to make sure that it takes up even more resources?
No wonder your customers are bailing in droves.
Well, this is some kind “highway work”, is it? Every few miles you get slowed down due to some importent roadwork that will be necessary “to speed up the traffic”. It just doesn’t work out. Maybe it would, if they would come to an end someday, but once one is closed, they open up another. If you count the full length the net gain is next to zero or maybe even negative.
The whole optimizing thing could be great, if M$ wouldn’t schedule almost daily “important fixes” that trigger the whole procedure again and again and again…
[moaning mode on]
Windows crashed and had to be restarted? Great oportunity to “optimize speed” again. The user can go to lunch meanwhile.
You know, you (as a company) could take more care in your code base which in turn would not need almost daily fixes, forcing us to “optimize” again.
[moaning mode off]
I won’t bother reiterating the same comments already listed here for three years, suffice it to say I agree and this ‘optimizer’ is essentially malware at this point. I’m all done worrying about my machine melting down because a Windows VM is basically a runaway CPU hog for 10 hours at a time.
So, I’ve lost my sense of humor for this whole mess and disabled the schedules that launch this pair of poorly-designed monsters. Until you learn — as a company — to respect the hardware that you *do not own* but are running on as a guest, you lose the privilege of running whatever code you please.
My question is now simple: What *real-world* side effects can I expect from these ‘optimizers’ to not be running? I’m not likely to believe that it will be much, since they weren’t every really running before, but let’s talk about it.
Hi, thru Zone Alarm, found listed is 255 programs under this MSCORSVW>EXEXE…
and most of these have written in a event ending… what is that all about…?
next was; NGEN.EXE.EXE.Also is with the Interrupt event over 200…
last the day after was inlisted; chrome.exet with the Interrupt event..
so my just over 500 programs, suddenly jumped to 1480… WTHeck..
Just the 32 bit version is stucked, when I run executeQueuedItens it says “All compilation targets are up to date”, but when I run queue status it says the service is running…Is it bogus? Should I kill it? Its been for more than 10 hours
I think I’d give the speedup script a go if there was a way to revert the changes afterwards.
.. And looks like mscorsvw just finished as I was typing. It took about an 1hr 15mins after a .NET Framework 4.6.2 install.
Hi!
We run a webserver (Win Server 2012 with IIS 8.5) with some websites on it. Shortly before two processes (.NET Runtime Optimization Service (32 bit) & Module installer) were consuming a lot of CPU (40-50% each) & all processes together up to 99%. But not enough – in addition – the “Antimalware Service Executable” means also it is the “only and most important process on the system and “turns also the wheel full speed”. In consequence all the nice programs “for a better system” blocked the system (a little “Kafkaesque”, isn’t it). Tried to reduce the priorities of the processes – didn’t help much. Perhaps it would … be an idea “Never take it all!” (CPU Power) or … “the doctor should not heal the patient until he is sick” or so… 🙂
Nick
(after 15 min everything is ok again)