What could be causing SVCHost to leak handles?

Posted by Goz on Server Fault See other posts from Server Fault or by Goz
Published on 2009-10-02T09:28:45Z Indexed on 2010/04/02 18:23 UTC
Read the original article Hit count: 416

I have a problem that has been causing me all sorts of grief recently. SVCHost appears to be leaking resources all over the shop.

This is the SVCHost run with the arguments "-k netsvcs".

At the moment it is sitting at around 5,700 Handles being used. Before I rebooted the machine it was sitting at around 33,000 handles! This higher number has been causing me large problems as my software, thus, fails to obtain the handles it needs (The software tries to create around 2000 handles).

I'm totally at a loss as to what is going wrong. IF anyone could help me stop this happening it would be much appreciated.

I'm running on XP with SP3.

Edit: I tracked this problem down to the WMI system. I'm not sure why or how the problem was occurring. Basically I used "sc change" to move it into its own process and suddenly everything seems to be fine. I'm not entirely sure what is going on ...

© Server Fault or respective owner

Related posts about svchost

Related posts about handle-leak