Forum posts for svchost.exe

Solving 100% cpu hang of svchost.exe hosting WCF service on IIS 6.0?

We're having a strange cpu issue with WCF services hosted on IIS 6.0 on Windows Server 2003 SP2 x64. On some of our environments, seemingly when an app pool starts up, the svchost.exe running iissvcs will spin up to 100% cpu and stay there indefinitely (3+ days observed).

Investigation tidbits:


It doesn't seem to be any specific app pool (we're hosting 5+ WCF
services in each their own app pool) nor happen every time.
The w3wp.exe process is started up, but using almost no memory / cpu - looks like very early initialization.
It seems strange that it's actually svchost.exe and not w3wp.exe that's 100%, so I'm suspecting a configuration issue. It seems to never touch our code.
We have 3 environments that have the issue and 1 that doesn't. Unfortunately the environments are installed manually, so they're not entirely identical.
An environment seems only to become 'infected' by one of our two branches. But after seeing the issue first time, even if the other branch is deployed, the issue remains.
The process seems to be doing no I/O, neither disk nor network.
Anti-virus software has been disabled from the one of the servers.


I've spent countless hours searching for the issue, I havn't been able to find any related issues on SO / google.

Investigating dumps with WinDbg says that the active thread stack trace is:

00000000000afaa8 0000000077d6e4a6 ntdll!NtReadFile+0xa
00000000000afab0 000007ff7fefe89e kernel32!ReadFile+0x1e0
00000000000afb50 000007ff7fefe7cd advapi32!ScGetPipeInput+0x3e
00000000000afbc0 000007ff7fee4ec9 advapi32!ScDispatcherLoop+0xa0
00000000000afca0 0000000100002b29 advapi32!StartServiceCtrlDispatcherW+0x119
00000000000aff10 00000001000029be svchost!wmainCRTStartup+0x18a
00000000000aff50 0000000077d596ac svchost!wmainCRTStartup+0xe
00000000000aff80 0000000000000000 kernel32!BaseProcessStart+0x29

However, dumping a working svchost.exe gives the same result.

Stack traces of all threads:


faulted svchost.exe: http://pastebin.com/wQwYykbd
working svchost.exe: http://pastebin.com/Fw1UnuRE


I wanted to include the traces here, but since they're rather long, I've put them on pastebin for the time being.

Any insight into what could be causing this - or ways to investigate further - is most welcome.

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.