Sunday, December 23, 2007

Use SC CONFIG to isolate a Service in its own svchost instance.

Digging in - How to isolate a service in its own scvhost.exe

"This is a very good public link to read about service control manager internals and how to manage services.

http://download.microsoft.com/download/f/3/9/f3900e1e-a45c-45a4-b716-740e553e1f62/SPTCF_SYS.doc 

Description of svchost.exe http://support.microsoft.com/kb/314056

...

for troubleshooting purposes if we want to isolate any one service running under svchost---we can do that using sc config  BITS type= own

now as you see BITS is running under its own scvhost  process.

..."

This is like a two for one deal...

First there's a link to the cool Managing System Services document (87 page chapter 13 from what I think is the Windows Server 2003 Resource Kit)

And then there's the tip on how to isolate a Service in a svchost.exe instance. (Say because a SVChost.exe instance is chewing up processor cycles, but that instance is hosting a number of services so it's hard to tell which one is being bad. So you want to isolate each service to its own svchost instance to hunt the evil one...)

Related Past Post XRef:
Using the TaskList command line utility to see what processes are using a DLL (and what process is hosting what Service)

No comments: