• On TV.com: Sexy summer bodies photo gallery
The Download Blog
advertisement
February 5, 2008 11:00 AM PST

Stop svchost.exe from stealing CPU cycles

by Peter Butler
Svchost.exe processes in Windows Task Manager

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.

Svchost.exe services in Process Manager

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.

Recent posts from The Download Blog
Selected Search speeds up on-page searching
Android ringtone swap: First Look video
Archive your e-mail from almost any account
An epitaph for the Web standard, XHTML 2
Google plans Chrome-based Web operating system
Sharetones: Make a ton of ringtones on Android
HideTab lets you cloak embarrassing tabs quickly
Chrome's new-tab page gets more interactive
Add a Comment (Log in or register) Showing 1 of 4 pages (101 Comments)
by CharlieAddressGuard February 5, 2008 12:52 PM PST
I use Task Manager to change the process priority. A virus scan interfering with my tasks at hand will be set to BelowNormal. This way I can check email, check RSS feeds, cruise the net... and not have the virus scan slow me down so much.

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'.
Reply to this comment
by peterbutler February 5, 2008 1:15 PM PST
Yep, that's another good idea that I also use, but didn't mention. You can right-click on any process in Windows Explorer and select "Set Priority" then choose from: Idle; Below Normal; Normal; Above Normal; High; Realtime. The PM in-program documentation doesn't quite explain "Realtime" but the rest of the settings are clear.

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.
by loweide March 22, 2009 11:40 AM PDT
When I try to change the priority, I get the "Unable to Change Priority Acces is denied" window. Since i am the administrator, I don't know how to get around this. Any ideas?

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.
by jwvanzandt February 5, 2008 3:51 PM PST
I suffered for this problem for 3 months, killing SVCHOST every chance i got. Finally after disabling windows update, the problem vanished. My final permanent solution last summer was to get a MacBook Pro. I have never regretted that decision. The performance is much faster, startup is very quick, and the user interface is much easier. And surprisingly, i have not missed any of my windows applications. none. Not even outlook. And I don't even have to decide between XP and Vista.
Reply to this comment
by JoyceNgo-218335993631273378369 February 5, 2008 7:40 PM PST
Lucky you. I was going to get a MacBook, unfortunately, a bit too expensive so I couldn't get it. i wish I have one.
by cayble February 5, 2008 7:43 PM PST
I understand your problem with XP and certainly sympathize with your decision to bow out of Microsoft products. More fool Microsoft for letting an error like that foul a previously happy customer, that is if you were actually previously happy. I myself, like just about everyone I know who uses Windows XP, which is about 95% of many dozens of computer users, not even considering those at work, have never had to suffer the indignities of the 100% CPU usage of SVCHOST, although I certainly have seen it hog more then its fair share of resources in the past. Like I said, more fool Microsoft for even letting it happen to anyone, because they no doubt have lost a few customers that way.

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.
by February 5, 2008 8:29 PM PST
i totally agree with you. My Windows problems were VANISHED after moving to OS X with a MacBook.

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.
by porterr February 5, 2008 10:16 PM PST
Mr. Stocker and M. cayble may find it interesting that two relatively inexpensive packages, VMware Fusion and Parallels Desktop, let the user of an Intel Mac create an XP virtual machine that can run those Windows applications you just can't live without on the Mac. Because both packages use OS X's unix-based services to implement functions MS implements more clumsily, XP in an OS X virtual machine is usually faster than XP running directly on the hardware. Nice side effects include tools to deal with XP's tendency to become senile, slow and buggy over time and require reinstallation, and the user's ability to read mail and browse internet in Mac applications, simply ignoring XP's various shenanigans, including the SVCHOST hyperactivity.
by KelticWarrior February 23, 2008 1:15 AM PST
by Walter Stocker February 5, 2008 8:29 PM i totally agree with you. My Windows problems were VANISHED after moving to OS X with a MacBook.

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
by Kenneth Nolan February 5, 2008 4:04 PM PST
I tried your recommendations but my computer won't let it operate, it is a new unit duo core and runs vista home.
Ken
Reply to this comment
by dzini February 5, 2008 6:06 PM PST
Ken, Vista maintains control even if you have administrator privileges unless you tell it not to. Go to control panel, user accounts. Under your user, click on "Turn user account control on or off". Turn user control off. You will have to restart, then you will have control of your environment. Vista well moan and groan about you taking control, but no harm will be done. If you not comfortable without with Vista not analyzing every key stroke you make, you can turn the control back on.

Good Luck

Richard
by Hadkeren February 6, 2008 1:03 AM PST
run as an administrator
by promytius February 5, 2008 4:05 PM PST
I just tried it - ACCESS DENIED - what's that all about?
Reply to this comment
by fracticus February 5, 2008 5:26 PM PST
You need Administrator status to make these changes to 'Services'
by KelticWarrior February 23, 2008 1:19 AM PST
Run as ADMIN, as with most Vista Applications that want system access, you need to run it that way
by Bob Newman February 5, 2008 4:11 PM PST
Throwing the baby out with the bath water is not a viable solution for me, adding yet another PC or MAC. I fought with a locked up computer for a day before finding Svchost.exe as the cause. My PC with XP home edition had been taken over. Turning the flashing lines off, one by one, using the Task Manager, took care of the problem. I began to take un-needed programs off the start up list one by one also. Result, much faster operation. Daily defrag of my 4 Tbyte system keeps it that way. Good luck and may the force be with you.
Reply to this comment
by seanwoods1 February 5, 2008 8:11 PM PST
how long does it take each day to defrag a 4 tbyte system?
by analatana February 5, 2008 4:21 PM PST
I am having this problem with a program named "agent.exe". I searched Internet to see if it was malware, a virus, or whatever and I found that it is also some kind of updating tool. The fact is that when my PC slows down to an exasperating point, I look into the Task Manager and there it is, agent.exe using as much as 98% of the resources. What do you suggest to do with it? Keep it? svchost.exe is there in the background also, but it doesn't seem to be causing any problem, as much as I can see. Thanks a lot! Ana
Reply to this comment
by stevebonza February 5, 2008 4:59 PM PST
if you go to search, files, agent.exe it should come up. delete. if it screws anything up get it from the recycle bin. if not empty bin. it is some site that was visited that downloaded a dialer to call their number.
by fracticus February 5, 2008 5:33 PM PST
Probably Adobe trying to call home - or any number of Java based apps. Find the source and delete it but leave it in recycle until you are sure nothing is compromised - restore if needed. You can right clic it in Task Mgr and do "Kill Process Tree". It might reload and deleting is better.
by gaurav_12 February 5, 2008 9:42 PM PST
first download process explorer.Now, double click on the process named agent.exe.in the window that pops up, you will se an option of current directory of the process.from here you'll know which folder the process is running from.now you know the software which the process is associated with.go to that software and disable option of auto update(if it is an updater) and see the result.if it doesn't work,try uninstalling that software. Never delete some random exe file without knowing what it is, it'll screw up your system.always try to uninstall it if possible.
by JayDPiii February 6, 2008 4:30 AM PST
Sometimes even deleting to recycle bin can be dangerous, if one cleans it out or runs a program that clears up like "Disk Cleanup".

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
by eyal February 17, 2008 3:41 PM PST
I've killed this agent.exe too several weeks ago. no problems yet.
by Redney February 5, 2008 4:52 PM PST
Yes I resemble that problem, now if I just had the nerve to implement it.
Reply to this comment
by mrspeedo February 5, 2008 5:08 PM PST
What the **** are you talking about. What in all that's good and holy are you saying? Are you speaking english, what foreign **** language is this? People are actually suppose to understand this??? Try using terms I would understand, ok??? Too much I.Q. means no common sense. This not an attack just some good ole' advice. Smart enough to use it?
Reply to this comment
by hawkump February 5, 2008 6:20 PM PST
I don't whom you're referring to as to not understanding, but everything seems pretty straight forward.
by JoyceNgo-218335993631273378369 February 5, 2008 7:34 PM PST
Ok this was for people who are intelligent enough to understand it. Can't read it then don't. You don't have to understand it. You'll just miss out, which is wonderful.
by seanwoods1 February 5, 2008 8:24 PM PST
i happen to agree with you! What is he saying "i resemble that problem"? he is most likely a drunk than smart. I happen to have an IQ of 130 something but that's only a number and has nothing to do with true intelligence. being able to communicate thoughts with others in a clear way that conveys your thoughts is the true sign of intelligence.
by bctiii February 5, 2008 8:27 PM PST
Maybe you need a little catching up, the solution was straight forward and writing in basic computer terms. I had sloved my problem with Go Back, but I am very happy to get the information.
by Charmsy February 5, 2008 11:13 PM PST
mrfoulmouth (mrspeedo) and seanwoods1
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.
by mrspeedo February 5, 2008 5:13 PM PST
If someone wants clarification about this computer science the explanation would be just as difficult if not impossible to grasp. It takes a great person with patience of a god to be willing to teach someone else what in the world your talking about. Go through every single solitary step in easy easy easy easy easy to understand terms so that folks can use this worthless information!
Reply to this comment
by dscc February 5, 2008 6:36 PM PST
In simple terms: your computer has an operating system (o/s), which is what makes the hardware and software work together. Most people have a Windows o/s. Part of the Windows os is a device called svchost.exe, which other programs on your computer sometimes like to use. When too many other programs at once use it, then the computer freezes for a while - that is, nothing works at all for a while. Understanding exactly how this happens is, however, very complicated. It seems that even the experts are puzzled. So ordinary users, such as you and me, are most definitely confused. In short, there is no easy way to understand all of this, even for experts.
by JoyceNgo-218335993631273378369 February 5, 2008 7:36 PM PST
Uh if it's worthless then don't use it.
by newdeafman February 6, 2008 3:09 AM PST
You have the front to talk about other people's written English!
by pjvenner February 18, 2008 3:36 PM PST
Computers & software are very complex beasties (especially windows). To explain stuff like this to that a total windows novice can understand it would require aan article so long it would take several very patient gods to read it in it's entirity.

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!
by mikehattan February 5, 2008 5:18 PM PST
I think your last statement to be a little Cavalier....Why would you even think of compromising your whole systems security just for more speed......?
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.
Reply to this comment
by dscc February 5, 2008 6:46 PM PST
Computers are either tools, to be used, or artworks to be treasured for their pristine perfection. It somebody thinks their computer is a tool, then when they need it, they need it NOW. Thirty seconds later is too late. If the price for being able to use their computer NOW is that its security gets compromised, and they have to rebuild later, then, to that person, so be it. So far as those people are concerned, perfection is for art galleries; computers are to be used.
by mocefish February 5, 2008 9:59 PM PST
Well my (TOOL) needs to be used NOW and thirty seconds is to late, SO are you going to rebuld it ? But wait I need it again NOW before you can , or how about a little maintaince to keep it running and if "IT" thinks it's a good idea to run updates and virus scans (or any other scans ) during employee working hours maybe the company managers should rethink their business stratagy?, or just wonder why their employees keep wanting newer, faster computers?
by ricardoantoniobeltran February 5, 2008 6:18 PM PST
You scared me because in my Task Manager I have the svchost.exe... LOCAL SERVICE... 00... 1,784k. It seems not offensive, but my question is what to do about it?
Reply to this comment
by Spencer Tomlinson February 5, 2008 6:20 PM PST
Eeek OK the System Idle process is meant to be high CPU usage thats normal, but for those shutting down the SVCHOST.EXE in XP is guaranteed to prompt a NT AUTHORITY/SYSTEM RPC or remote Procedure Call and the PC will force you to shutdown in 60 seconds, regardless so if you got a text document or a very big assignment on your desk you will %100 lose it, if you dont know how to abort the timer and subsequent shutdown. Here is a little tip if you do force SVCHOST to close and you do get the RPC message saying a programs has caused windows to NT AUTHORITY RPC etc..GOTO RUN and CMD and type in shutdown -a in XP and although this might just bluescreen and crash you under Vista is shutdown /a. Folks please take it from me if your PC hangs and you force SVCHOST.EXE to close and dont have time to bang out run and cmd and then shutdown - a because you got 60 seconds to respond then your going to lose your stuff, sometimes your PC will still freeze up and the countdown will trundle on. I think there is an option to extend the timer to 999 seconds instead of 60 seconds that will at least give you time to abort. like shutdown -t XXXs in XP XXX is where the seconds before shutdown are.
Hope this helps even if just a little??
Reply to this comment
by Doctor Entropy February 5, 2008 6:30 PM PST
Okay, folks:

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).
Reply to this comment
by mattsengle February 5, 2008 6:33 PM PST
I found Process Explorer on Major Geeks and have been using it since around Christ-mas.

Also, WinPatrolEx is a great small program that does a lot of the same functions as Process Explorer only a smaller footprint.
Reply to this comment
by Jackteal February 5, 2008 7:01 PM PST
I also suffered with this issue. I paid someone to come to my house and delete and correct this "Bogus".exe file. Next day it was back. In the long run, it ended up being a worm. I had to format my hard drive to get rid of it. I put in a clean XP program and installed alot better "protection" from this malice. It was costly but effective.
by kolotyluk February 5, 2008 7:23 PM PST
I use BitDefender Internet Security 2008 and it's continually causing svchost to use 95% of my CPU. I know this via Process Explorer (it show's BD associated with that instance of svchost) and also when I turn off BitDefender the problem goes away immediately. Basically my computer becomes unusable with BitDefender running. I have brought the matter to the attention of the BD support people, but they are unable or unwilling to admit it's a problem.

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.
Reply to this comment
by MIXXITMAN03 May 27, 2009 1:38 PM PDT
NOT BEING IGNORANT TO ANYONE WHO POSTED IN HERE ON THIS SUBJECT BUT IF THE TERMINOLOGY IS AN ISSUE WHY NOT EITHER DOWNLOAD UNDERSTANDING WINDOWS XP OR BUYING THE BOOK WINDOWS XP FOR DUMMYS?? WOULD HELP WITH THE TERMINOLIGY AND MAKE IT SO YOU CAN UNDERSTAND WHAT YOU ARE LOOKING AT OR DISABLING OR ENABLING.. PLUS TO ADD TO THE LIST OF POSSIBLE CAUSES I HAVE RUN INTO PROBLEMS SINCE INSTALLING SP 3 EASY FIX UNINSTALL SP3 AND DOWNLOAD SP2.. A QUESTION I HAVE IS HOW DO I GET MY VIDEO CARD NVIDIA INTEGRATED TO PERFORM LIKE IT DID BEFORE SP 3 WAS INSTALLED?? I USE PC PITSTOPS TESTS AND THE ONLY PROBLEMS THAT COME UP ARE MY 2D VIDEO PERFORMANCE WHICH AVGS. 48-54 MPS BEFORE SP 3 IT WAS CLOSER TO 200 OR BETTER ON A BAD DAY.. BUT WITH ALL THE SECURITY PATCHES IN SP3 IS IT EVEN POSSIBLE TO GO BACK TO SP 2? MY DRIVERS ARE UP TO DATE, THE HARDWARE IS OPERATING PERFECTLY NO PROBLEMS EXCEPT FOR THE 2D BENCHMARK TEST.. ANY IDEAS??
by Headspin February 5, 2008 7:26 PM PST
I just simply kill the highest memory using svchost in Task Manager when I want to play a game that requires a larger amount of CPU and memory. I have no problems with my system when I do this. I also remove other obsolete programs that take up memory usage in the Task Manager. Once I am done with the game, I simply reboot, and it comes back, but I don't notice much difference when I am running every day programs. I only run one gig of RAM with a Pentium 4 3.06GHz.
Reply to this comment
by JoyceNgo-218335993631273378369 February 5, 2008 7:32 PM PST
I guess it's normal having so many of those svchost.exe running.. maybe I should set them lowpriority, as of now, I do it and it says the process is still being used and cannot perform the action. Oh well :\
Reply to this comment
by rng_sudu February 5, 2008 7:49 PM PST
We Can overcome that issue from disableing windows update and I have try with AVG7.5 can remove effected things.
Reply to this comment
by mikerandal February 5, 2008 7:55 PM PST
cool
Reply to this comment
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)

Search Download Blog posts

advertisement

About The Download Blog

Download.com editors cover the world of downloadable software and beyond.

Add this feed to your online news reader

The Download Blog topics