Stop svchost.exe from stealing CPU cycles

Svchost.exe processes in Windows Task Manager.
(Credit: CNET Networks)The situation is familiar to countless Windows users: They're in a groove at work, firing off e-mails, crafting documentation, and even blogging on their personal site during breaktime, when suddenly, something takes over 99 percent of the CPU, slowing it to a virtual standstill. A quick look at the invaluable Process Explorer (or the standard Windows Task Manager) indicates that a process called svchost.exe is using all that CPU. What's more, there's one main CPU offender. Multiple versions of svchost.exe are running in the background and hogging CPU cycles. What is it? Is it spyware? Hackers? Terrorists?
Although there are historical cases of malware using svchost.exe, because of its common presence, it's most likely just Windows being Windows. Svchost.exe is a generic process name for Windows services that run from Microsoft DLLs (dynamically linked libraries). Each of those instances of svchost.exe in the process lists actually represents a group of services that each process is managing. With Process Explorer, it's easy to see which services each process manages, and stop them one by one to see which is the CPU culprit.
In the spring of 2007, a major problem arose with a Windows update that caused svchost.exe to use 100 percent of CPU because of an issue with Automatic Updates. To correct that bug, be sure that Windows is fully patched with the most recent updates.
The first thing to do is to determine which of the active svchost.exe processes is causing the slowdown. Fire up Process Explorer, and click on the CPU column header to sort the list of processes by processor usage. A list of processes, sorted from most processor intensive to least intensive, is displayed. When the computer stalls, switch over to Process Explorer and see which running process is causing the crunch.
Once the offending version of svchost.exe is found, re-sort the processes to keep it from moving up and down the list (because CPU usage changes constantly). Usually, my busiest svchost.exe process will also use a very large chunk of memory, so I usually sort by Private Bytes.

Hovering over an svchost.exe process in Process Explorer will display all of the related Windows services.
(Credit: CNET Networks)Now that the specific svchost.exe process that's using up all of the CPU has been identified, hover the cursor over its name in Process Explorer. A tooltip window, that provides a list of all the Windows services associated with that process, will pop up.
Users can then use that list to determine which, if any, of the Windows services is killing their productivity. Launch the Services manager in XP by launching the Control Panel, selecting Administrative Tools, and then double-clicking the Services shortcut, or by typing "services.msc" into the "Run" dialog in the Windows Start menu. From this Services manager application,users can pause, stop, restart, or run any of their Windows services.
Often users will see about 20 different services represented by one process (see svchost.exe example in Process Manager above.) How are they supposed to know which of those is causing my computer to slow down? Well, luckily I've played around a bit with nearly all of the services in the list and found my biggest problem: Task Scheduler.
Task Scheduler is a Windows service in the NT family of operating systems that lets users schedule programs or automated jobs that can be performed at specific times or regular intervals. Since I'm working on a CNET company PC, there are a lot of corporate controls that I haven't manually configured. For example, security scans are managed on a networkwide IT level.
While my IT team might not like to hear it, if I'm in a deadline crunch and svchost.exe keeps slowing me down, I generally launch the Services manager and temporarily stop the Task Scheduler and Automatic Updates. Both of these services are critical to the health of my PC, of course, so I can't turn them off indefinitely, but I can stop them for the hour that I need to get my time-sensitive work done. I know that antivirus and antispyware protection is critical, especially for a computer tied to a huge network. However, in my hour of need, the applications that edit text files and images are much more critical than my regularly scheduled virus scan.
Have you suffered performance problems because of an svchost.exe process hogging your CPU? Have you found a solution for the problem? If you've got a great fix for the issue, or a specific question about your computer let us know in the comments.

If you don't know what the process is, then right click on the application and select 'Go To Process'. Then right click on the process and select 'Set Priority', then select BelowNormal'.
When zapped by svchost.exe out of the blue, I definitely do Set Priority to Below Normal or sometimes Idle when Below Normal doesn't help enough.
That's an important factor that I forgot to mention. Thanks, CAG. If that fixes your problem, then use it, by all means.
Unfortunately, if I've been lazy and haven't restarted in a while, resetting the priority of the svchost.exe process to Below Normal doesn't reduce CPU usage enough to function at a reasonable speed with multiple apps running. And Idle can interfere with some server and networking services that I need. For me. Perhaps the smart solution there is to restart. ;)
Nonetheless, learning more about the Windows services that are running on your machine is rarely a bad thing, unless you're stopping services and deleting files haphazardly.
Also, I found the culprit using Process Explorer, turned off one service, and the CPU speed picked right up. this was great help. Thanks a lot.
But for me and pretty much everyone else I know, we have been as pleased as could be with XP and wouldn't switch to an Apple product for anything because for our purposes OSX just doesn't do what we want, and frankly, although Apple puts together a nice hardware package it isn't cheap and I myself build my own so the Apple "white box" has negative appeal. I'm hoping that Microsoft never does anything so stupid that forces myself and others like me into going with Apple as Apple will have to make an awful lot of changes to keep me as happy as I have been with XP.
It's not perfect, of course, but i haven't regretted the decision... not even once! I unfortunately still must use a PC in rare occasions because some "special" software was selfishly developed only to work on Windows.
But aside from those freak occasions when i need access to a PC, the MacBook has everything i need to not have to worry about Windows bogging down Windows... ever again.
It's not perfect, of course, but i haven't regretted the decision... not even once! I unfortunately still must use a PC in rare occasions because some "special" software was selfishly developed only to work on Windows.
But aside from those freak occasions when i need access to a PC, the MacBook has everything i need to not have to worry about Windows bogging down Windows... ever again.
Walter, do what I did. Setup a dualboot of OSX & XP on your Macbookpro.
The MacbookPro has the same hardware that runs Windows. Then you can carry your solution to the I need Windows occasionally with you.
regards,
ITconnor
Ken
Good Luck
Richard
An alternative is to rename the file. I use the same procedure as i do when I make changes to a file. rename the original or the offender
from: name.ext
to: name_ext.orig
So agent.exe becomes agent_exe.orig
No foulmouthing or iq are going to help you if you don't understand what Peter Butler is saying. Unfortunately what you need is good old EXPERIENCE which would make it as easy as learning your ABC's - so take it easy, learn fast and good luck.
Given that this guy works to a schedule he's done a pretty good job of explaining it. This is a tech site so some level of understanding from users has to be assumed. You are correct in stating that many computer issues are nigh on impossible to grasp, but they're even harder to explain in a way that EVERYONE can understand, so please, give the guy a break!
I think you are searching for perfection and when you reach my age, hopefully you will know by then that that is an impossible task. Chill.
Mike.
Hope this helps even if just a little??
For those of you who are having trouble getting this to work: Are you using the Administrtor account? A limited User account may deny you access to some aspects of the system, which is good for security. Log in as Administrator (if you're allowed), them log back out when finished.
System Idle Process: It's not using anything, it is just showing you how much of your CPU resource is unused. No worries there.
For those who can't understand the article: What is confusing you? Everything is named just as it is in Windows. Don't know where Task Manager is? Press CTRL+ALT+DEL, which will bring up the Task manager. Don't kill svchost from here, it will just reload. You need to turn off individual services. The methods for accessing the Service Manager are described in paragraph seven. Can't find Process Explorer? You need to download and install it. Click on the link in paragraph one or four.
Agent.exe: This file could belong to several different applications. The best way to find out which it belongs to is to search for the file on your computer, right-click on the file, click Properties, click on the Version tab, then look through the list of product name, company name, etc., until you find the info you want. Some apps that have an agent.exe: Forte Agent Newsgroup reader (not required), Acronis Disk Management (required), InstallShield Update Service Agent (not required, but let it check for updates occasionally, or manually update the programs that use this service). If your agent.exe runs as a service, you can disable or set to manual the behavior of the service. If it is just a process you find in Task Manager, you can kill it when it slows your system down. If it is an update tool, the slowdown may be because it is actually downloading updates.You can always let this run while you are not using the computer, if you don't like to search for updates through individual apps that use this agent.exe (those installed with InstallShield).
Also, WinPatrolEx is a great small program that does a lot of the same functions as Process Explorer only a smaller footprint.
What's interesting is that prior to November 2007 this was not a serious problem; sometimes svchost would act up, but not all the time. Since then it's a continuous problem. Either a Window update or a BitDefender update must have introduced the problem, but I can't tell which.
At any rate one thing I'm sure of is that Microsoft have morons working on their operating systems team, there are so many stupid performance problems in Windows that I've never seen in any other operating system: OS X, Solaris, Linux, etc.
-
by mofmawed
February 5, 2008 8:38 PM PST
- It's a great thing
-
Reply to this comment
-
Showing 1 of 4 pages (101 Comments)