Forum posts for svchost.exe

Svchost: How to make it run only one module per instance of svchost.exe? How to get extended…

I have an issue with one of my applications. I run the application, everything is okay. When I close this application, I notice that one of the 'svchost' processes in the system takes up about 95-100% of the CPU and I have to figure out what is taking up so much of the CPU cycles.

I set myself pretty simple and straightforward goals on how to go about this:


Get the process info or this particular 'svchost' that is taking up so much CPU
I know what an svchost process is used for, so I save you guys the effort to explain me about it. So now I must know which modules are loaded by this rogue svchost.
I ran my application, closed it and made sure that my process is completely closed, not anymore in memory. I then got the PID of the svchost taking up 100% CPU
I ran ProcessExplorer (from sysinternals), got the info about how many and which services this svchost has hosted. They are about 12 services. I would not bother about this list as I am more concerned about How to IDENTIFY which one of these 12 services is taking up the CPU cycles.
Now I have the list with me and here starts the tricky part... I want to do 1 of the 2 options below


Option 1:
HOW DO I IDENTIFY WHICH ONE OF THESE 12 SERVICES IS TAKING UP SO MUCH CPU? CAN I GET EXTENDED INFO FOR THIS SVCHOST PROCESS THAT GIVES ME DETAILED INFO ON A 'PER SERVICE' BASIS HOSTED IN THIS PROCESS RATHER ON THE PROCESS BASIS THAT I HAVE NOW?

Option 2:
IS IT POSSIBLE TO CONFIGURE WINDOWS TO MAKE SVCHOST TO RUN ONLY ONE SERVICE PER INSTANCE OF SVCHOST?

If there is a better option on how to investigate, narrow down the root cause of this issue, please do let me know.

View complete forum thread with replies

Other posts related to svchost.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

Why is svchost.exe terminating my C# application?
Shared process service via svchost.exe in .NET
How to hide svchost.exe (dos prompt) when executing a scheduled task in Windows
Solving 100% cpu hang of svchost.exe hosting WCF service on IIS 6.0?
.Net Application extrem slow. After killing svchost.exe it runs again fast. Any idea?
how can i use svchost.exe to host my own services?
System becomes very slow to figure out this want to know more about System32 Folder
Windows XP - server process (svchost.exe -k netsvcs) starts after about 10 minutes
Memory leak in svchost.exe while running a particular windows service
Can I use svchost.exe to host my own services?
Svchost: How to make it run only one module per instance of svchost.exe? How to get extended…
ESET Firewall rules for svchost.exe and javaw.exe?
Why is the CommandLine property of a svchost.exe WIN32_Process null?
CreateProcess() and ShellExecute() freeze when waiting for svchost.exe

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.