Solved

How to know what process is running when svchost.exe uses up 99% of CPU?

Posted on 2014-01-08
6
484 Views
Last Modified: 2014-01-30
We have a Win 2003 server as domain controller. Its CPU utilization reaches 99% for 10 minutes pretty much from 5pm till 5:10pm almost every day. When it happens, I can see the process "svchost.exe" uses up about 99% of CPU. What could be wrong? Is there any way to know what specific process (other than svchost.exe) is using up the CPU?
0
Comment
Question by:Castlewood
6 Comments
 
LVL 22

Expert Comment

by:Joseph Moody
ID: 39765265
On newer OSs, it is a lot easier to trace this. On an older OS, you can use Process Monitor to get a better look at what the machine is doing.

http://technet.microsoft.com/en-us/sysinternals/bb545027.aspx
0
 
LVL 12

Expert Comment

by:aindelicato
ID: 39765322
open a CMD prompt and run tasklist /svc
0
 
LVL 5

Accepted Solution

by:
d_nedelchev earned 400 total points
ID: 39765399
You can use Process Explorer by Sysinternals to view the individual modules, DLLs, Services and "Threads" that are utilized by a svchost.exe processes.

1. Download and run the utility

2. Select the process which hogs the CPU time.

svchost.exe process selection...

3. Check out the services that are being run by the process.

svchot.exe - Services tab.

4. Select the Thread.

svchost.exe - Threads tab.

5. Kill the sucker!

0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 34

Assisted Solution

by:Seth Simmons
Seth Simmons earned 100 total points
ID: 39765421
i would use process explorer as mentioned but identify first what the service is and why it's causing a cpu spike before killing it else if it's a service configured to restart in x seconds after failure it might start using cpu again.  do root cause analysis to prevent from reoccurring
0
 
LVL 5

Expert Comment

by:d_nedelchev
ID: 39765464
seth2740 has a point there - you must identify the cause of the problem and eliminate it, if possible.
0
 

Author Closing Comment

by:Castlewood
ID: 39822339
Thank you for the amazing work.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A procedure for exporting installed hotfix details of remote computers using powershell
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question