近日有win10系統用戶在查看任務管理器進程的時候,發現有一個.NET Runtime Optimization Service進程占用cpu使用了很高,該怎么辦呢,本文就給大家講解一下win10系統中.NET Runtime Optimization Service占用CPU使用率很高的具體解決步驟。

具體如下:
進程名稱: .NET Runtime Optimization Service
進程文件: mscorsvw.exe
出現這樣的現象我們可以通過下面方法來解決:
方法一:關閉mscorsvw.exe
通過cmd命令來關閉
按下win+X,點擊命令提示符(管理員),在命令提示符中鍵入:ngen.exe executequeueditems
若沒有效果則使用方法二來解決:
1、按下win+q搜索 powershell ,在windows powershell 上單擊右鍵,選擇【以管理員身份運行】;
2、在powershell框中鍵入下面代碼:
# Script to force the .NET Framework optimization service to run at maximum speed.
$isWin8Plus = [Environment]::OSVersion.Version -ge (new-object 'Version' 6,2)
$dotnetDir = [environment]::GetEnvironmentVariable("windir","Machine") + "\Microsoft.NET\Framework"
$dotnet2 = "v2.0.50727"
$dotnet4 = "v4.0.30319"
$dotnetVersion = if (Test-Path ($dotnetDir + "\" + $dotnet4 + "\ngen.exe")) {$dotnet4} else {$dotnet2}
$ngen32 = $dotnetDir + "\" + $dotnetVersion +"\ngen.exe"
$ngen64 = $dotnetDir + "64\" + $dotnetVersion +"\ngen.exe"
$ngenArgs = " executeQueuedItems"
$is64Bit = Test-Path $ngen64
#32-bit NGEN -- appropriate for 32-bit and 64-bit machines
Write-Host("Requesting 32-bit NGEN")
Start-Process -wait $ngen32 -ArgumentList $ngenArgs
#64-bit NGEN -- appropriate for 64-bit machines
if ($is64Bit) {
Write-Host("Requesting 64-bit NGEN")
Start-Process -wait $ngen64 -ArgumentList $ngenArgs
}
#AutoNGEN for Windows 8+ machines
if ($isWin8Plus) {
Write-Host("Requesting 32-bit AutoNGEN -- Windows 8+")
schTasks /run /Tn "\Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319"
}
#64-bit AutoNGEN for Windows 8+ machines
if ($isWin8Plus -and $is64Bit) {
Write-Host("Requesting 64-bit AutoNGEN -- Windows 8+")
schTasks /run /Tn "\Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319 64"
}
按下回車鍵執行加快其運行速度即可解決CPU占用問題。
.NET Framework 在被安裝與更新時,在本機端會進行一個最佳化的工作,由于工作效率慢慢來的現象導致CPU使用率不停飆升。
上述就是win10系統中.NET Runtime Optimization Service占用CPU使用率很高的詳細解決步驟,如果你有遇到一樣情況的話,可以按照上面的方法來解決吧。

閩公網安備 35020302033304號


網友評論