I am on Service Pack 2. My CPU is running at 100% with either svchost.exe or services.exe. I know that this was common in XP, server 2000, etc. But now I only seem to find posts for Vista. What is the reason?
3 Answers
Try using Process Explorer and Task Manager to figure out what service is hogging the CPU. Once you know that much, edit it in to the question and we might be able to help.
- 77,337
- 11
- 120
- 212
-
1+1 for procexp...it's almost essential for diagnosing these types of issues – Jason Berg Jul 26 '10 at 15:08
Since you're running Server 2008 and if you don't want to install software to figure out what's causing this (and really, process explorer is very good), you can now do this from Task Manager. The process is to...
- Go to View -> Select Columns.
- Ensure that "PID" is selected.
- Identify the consuming process and note the process ID (PID)
(source: sysadmin1138.net)
- Select the "Services" tab in Task Manager
- Click the PID column to sort it by PID
- Identify the service(s) that is associated with that process, by locating that PID
(source: sysadmin1138.net)
With SVCHost a single instance may be associated with multiple services. As it happens, ProcessExplorer also can't distinguish between them. This is new with Server 2008, and is a very nice addition.
- 1,213
- 3
- 15
- 22
- 131,083
- 18
- 173
- 296
-
Very helpful comments!! I am also seeing OWSTimer jump in with high CPU which appears to be a sharepoint issue. Is that true? How is it fixed? The services that I am seeing related to svchols are WinRM, TermService, NlaSvc, KtmRm, Dnscache, and CryptSvc. Task Manager makes these pretty obvious but didn't know how to see this in process explorer. We are running this server on VMWare with McAfee OAS – user49352 Jul 26 '10 at 21:00
-
-
1Actually you can save a step, right click the suspect process in the Processes tab and there should be an option for Go to Services; you'll wind up there with the matching service(s) highlighted. – SqlACID Jul 26 '10 at 22:32
-
@SqlACID See? ProcessExplorer is no longer required kit for figuring out what process belongs to which service. – sysadmin1138 Jul 26 '10 at 22:57
the following will give you a run down of whats being hosted by these process
wmic service where "pathname like '%svchost.exe%' or pathname like '%service.exe%'" get name,pathname,processid
- 3,844
- 17
- 14