Solved

Why does the WMI service hang?


Userlevel 1
Badge +6

I also see same issue in my environment frequently where backups on multiple servers hang randomly. And then we see commands like ‘tasklist” timing out on the client which confirms WMI is not responding.

We have to reboot every week or so to fix.

Does anyone know why WMI hangs? Unfortunately we don’t have Microsoft support so have not been able to take up this issue with them.

icon

Best answer by MichaelCapon 7 May 2021, 10:21

View original

6 replies

Userlevel 7
Badge +23

@Sandy11 , I split this one out so we can focus and track better.  I’ll get the right eyes on this one and see if we can advise.

Userlevel 7
Badge +19

I also see same issue in my environment frequently where backups on multiple servers hang randomly. And then we see commands like ‘tasklist” timing out on the client which confirms WMI is not responding.

We have to reboot every week or so to fix.

Does anyone know why WMI hangs? Unfortunately, we don’t have Microsoft support so have not been able to take up this issue with them.

Not sure on the source of the hang, the windows event log should provide some clues, however, as a workaround solution, you could try using a pre-script to recycle the windows management services to ensure a smooth backup run each night:

https://docs.microsoft.com/en-us/windows/win32/wmisdk/starting-and-stopping-the-wmi-service

Userlevel 6
Badge +14

Could you clarify the OS Version/Build of these clients and the type of backup/operation that is happening on those too? - FileSystem backup / VM Backup etc.

Do you see WMI related query failures in the logs of the failing backups? 

As Damian said above, you could add a pre/post script to cycle wmi srvcs as a temporary workaround.

Userlevel 1
Badge +6

OS is Windows 2016 standard. These are filesystem backups.

WMI timeouts are seen in the event logs. Backup hangs after this point in clbackup.log

Cpipelayer::Initiate pipeline SDT using socket

 

Wintel sysadmin tried to restart wmi manually but it does not work either. So they end up rebooting the servers.

Badge +2

Hey @Sandy11 ,

 

Can you provide us the Microsofterror from the OS Events in regards to the WMI Timeouts?

.

 

Userlevel 6
Badge +14

Are these backups performing System State backups too?

It may be worth enabling WMI Tracing on the hosts to see what’s happening. - Tracing WMI Activity - Win32 apps | Microsoft Docs

 

 

Reply