Are you encountering high CPU usage on Windows Management Instumentation Provider Host (wmiprvse.exe). We encountered this problem after power failure on a Windows 2012 R2 server. After the reboot the server showed very high CPU, sometimes even 100%.
We tracked don’t the cause of the problem to our monitoring tool check_mk. It seemed that stopping the check_mk_agent service stopped the spiking of the CPU usage. And it started again sometime after starting the service. Anyway the solution had nothing to do with the check_mk monitoring, but was actually symptom of corrupted WMI performance counters.
Solution
You need to reset the WMI performance counters. This happens by running the following commands in Windows Command Prompt in elevated mode.
- Enter the Command Prompt by typing cmd.exe to the search box or after opening Start menu. Right-clicking the icon and choose Run as administrator.
- Type in to the Command Prompt: cd c:\windows\system32
- Type in: lodctr /R
- Type in: cd c:\windows\sysWOW64
- Type in: lodctr /R
- Type in: winmgmt.exe /resyncperf
After this either reboot the machine or restart the services (Performance Logs and Alerts, Windows Management Instrumentation, check_mk_agent). After the reboot the CPU usage problem was gone and the monitoring worked as before.
Recent Comments