» An ultimate catalog of computer data
Forum posts for WmiPrvSE.exe
Pipe answer from tasklist to check mem usage of process and kill if exceeding threshold
I found a powershell version that does the job but it uses WMI and thats the process i have issue with, its leaking and hits the 512MB roof and stops working 'out of memory'.
$processToMonitor = 'wmiprvse.exe'
$threshold = 513MB
Register-WmiEvent -Query 'SELECT * FROM __InstanceModificationEvent WITHIN 5 WHERE TargetInstance ISA 'Win32_Process' AND TargetInstance.Name='$processToMonitor' AND TargetInstance.WorkingSetSize > $threshold' -Action { Get-Process -PID $event.SourceEventArgs.NewEvent.TargetInstance.ProcessId | Stop-Process -Force -ErrorAction SilentlyContinue | Out-Null }
So the above will not work when WMI is out of memory, so could i use some other way of doing the same thing?
If i use:
tasklist | find 'WmiPrvSE.exe'
It spits out the current WmiPrvSE processes with pid, and memory usage. And ideas of how i can use that?
There is a patch for this WMI leak issue but i cant patch all servers as soon as i want.
View complete forum thread with replies
Other posts related to WmiPrvSE.exe
See Related Forum Messages: Follow the Links Below to View Complete Thread
Pipe answer from tasklist to check mem usage of process and kill if exceeding threshold
SQL Server 2008 R2 - Can't open a connection
Want to script Windows WMI (wmiprvse.exe) to release handle on file
Parse a task list
WMIPRVSE needs to be run under network services by default
Why is a WPF TextBox sending wmiprvse.exe out of control?
CSV formatting in batch files