WMIprvse process leaks memory on 2008 server R2

Dani Fischer picture Dani Fischer · Apr 28, 2010 · Viewed 9.8k times · Source

I have a Windows 2008 R2 server running on a VM machine. My .NET service is running on this server periodically querying WMI, for example:

SELECT ProcessId FROM Win32_Service WHERE ...

After a day or two WMIprvse takes up to 500M memory and WMI queries start getting out of memory exceptions.

This article seems to be talking about this issue: "http://support.microsoft.com/kb/958124"

I've seen other articles saying that Microsoft is aware of the problem and not going to issue a fix until the next major release. http://social.msdn.microsoft.com/Forums/en/netfxbcl/thread/256eb40c-d050-4278-a3d8-863e30db02a0

I'd appreciate any suggestions and insights on this.

Answer

Matt Duguid picture Matt Duguid · Dec 18, 2011

Check out both the following KB articles,

...but also worth noting we are on Windows 2008 R2 with SP1 (file versions higher than those provided by both hotfixes) and we are still seeing some slow memory leak issues possibly from either WMIAPSRV.exe and/or TRUSTEDINSTALLER.exe.

We are going to open a support call, if we find anything relevant will post the answer.