![svchost.exe](https://i-blog.csdnimg.cn/blog_migrate/b4120b34626a4e1e6250735a930ff5d9.png)
svchost.exe
Lately I've been seeing one particular svchost.exe sucking CPU. There always a number of in-proc running inside of each of the many svchost (Service Host) instances. Using ProcEx, I figured out the PID of the specific instance. Then, I right clicked within ProcEx, hit Properties, and under the Threads tab noticed that wbemcore.dll was working REALLY hard.
最近,我一直在看到一个特定的svchost.exe占用CPU。 在许多svchost(服务主机)实例中,每个实例内部始终运行着多个进程内进程。 使用ProcEx ,我确定了特定实例的PID。 然后,我在ProcEx中单击鼠标右键,单击“属性”,然后在“线程”选项卡下注意到wbemcore.dll确实非常有效。
Crap, time to re-schmutz WMI's repository. So, I stop WMI from the command line with :
废话,是时候重新调整WMI的存储库了。 因此,我使用以下命令从命令行停止WMI:
net stop winmgmt
净止损
Then I deleted the Repository directory in c:\windows\system32\wbem\ then started again with
然后我删除了c:\ windows \ system32 \ wbem \中的Repository目录,然后重新启动
net start winmgmt
净启动Winmgmt
Then I re-stored/compiled all the .mof (Managed Object Format) files with a batch file containing this one line:
然后,我用包含这一行的批处理文件重新存储/编译了所有.mof(托管对象格式)文件:
for %%i in (*.mof,*.mfl) do Mofcomp.exe %%i
为(* .mof,*。mfl)中的%% i做Mofcomp.exe %% i
Now I'm back in business.
现在,我重新营业。
翻译自: https://www.hanselman.com/blog/svchostexe-sucks-cpu-and-rebulding-the-wmiwbem-repository
svchost.exe