Have's Blog

November 21, 2009

CPU usage is running 100% in Windows 7, and how to fix it

I have been running Windows 7 for a week and 1 day, and today I have already experienced a major issue. When starting internet explore the CPU usage starts to running at a constant 100%, slowing down my computer. I can’t really reproduce the error every time, but I have my suspicions. I have had the error 2 times, first after visiting YouTube, and then some days later visiting a news site. Common for these site are use of flash, and maybe flash could mess something up. I’m not 100% sure, but it is something I will look after. As a note, I have to mention: the issue did not disappear after reboot, but reappeared after starting Internet Explore.

Either to fix this/these 100% usage issues, I use Task Manager.  Selecting the Processes tab I can see which process uses most computer time. Well, here is one catch, Windows 7(and Vista) hides System processes, so  the button Show processes from All users must be pressed. System processes which uses to much CPU are not shown by default, which can give a distorted image, when all processes shows 0 under CPU, and CPU Usage are 100%.

  task manager

 

A healthy idle system should show System idle process as the must time consuming process, but in my case it was svchost.exe. This was expected but annoying, because ProcessExplorer represents a group of services, but it doesn’t tell me wich. Pressing the Services tab in the Task Manager, shows me all the services it could be. The best way to find the sick service, is to use ProcessExplorer, which is a super a task manager from Microsoft. You can get it free here at Microsoft’s tech page:

http://technet.microsoft.com/en-au/sysinternals/bb896653.aspx

Opening ProcessExplorer, you can see all your processes running. Now find the svchost.exe which uses the most CPU time, and hold the mouse pointer over the text: svchost.exe. Now ProcessExplorer tells you what services it runs, and often it runs more than one. I my 2 issue cases it was my upnphost service which was the sinner. My solution to the problem was to press the Windows button in the bottom left corner, right click on computer and select manage. Then select Services and Applications and then Services. Then find UPnP Device Host (or what your sick service is called), right click press STOP, watch the CPU usage drop, press START.

Good Debugging ;-)

About these ads

8 Comments »

  1. I have the same problem here in my Windows 7. I found the process svchost
    it consumes 100% CPU has the same PID two Windows services: upnphost and
    SSDPSRV.
    This happens every time I start Windows.
    But to kill the process or restart the service is not the solution to this
    problem …

    Comment by Filipe — January 28, 2010 @ 8:48 pm

    • Hey Filipe,

      Ok, sounds like your problem differs a little from mine. Upnphost only consumes 100% when I start iexplore. Did you use ProcessExplore to find your consuming PIDs? And can you confirm that it starts consumption when windows is started?

      I have done some researching on SSDPSRV, and it is a discovery protocol, and far I can see upnp depends on so maybe, there is a connection there. I don’t know if you have any other upnp devices than you computer with windows 7. It is not that wide spread yet, so I have chosen to disable it so far. The trick is to remember to enable in the future when the bug is closed by MicroSoft.

      Description for SSDPSRV
      http://www.blackviper.com/Windows_7/Services/SSDP_Discovery.htm

      If you finds a good solution, could I then asked you to drop me a mail, so I can updated my blog?

      Good luck,
      Have

      Comment by therealhave — January 28, 2010 @ 10:50 pm

      • Is there really no other solution to this other than going to the service and stopping it? Just recently with my windows 7, svchost ( local service ) is eating up my intel core i7 2nd gen processor at around 14 to 20%-ish of my processor. When I go to services, it is being caused by the upnphost service. Thanks. ^_^

        Comment by Redex — May 24, 2012 @ 7:11 am

  2. Thanks for the information.

    Comment by Vikram — February 9, 2011 @ 3:44 pm

  3. Seems like everyone out there has >1 core processor so they don’t notice that at all… But I have only one core and it’s soooo annoying! -.-

    Comment by Too bad — June 6, 2011 @ 10:59 am

  4. Mine has this problem frequently, and I hate to go restart the upnphost service all the time, so instead i just created a task in the task scheduler to run a once a day, and repeat every 5 minutes. The task runs a .bat file:

    net stop upnphost
    net start upnphost

    if you want to make it run in the background without the cmd window coming up, run this .vbs with the above .bat already created as “C:\upnphost.bat”:

    Set WshShell = CreateObject(“WScript.Shell”)
    WshShell.Run chr(34) & “C:\upnphost.bat” & Chr(34), 0
    Set WshShell = Nothing

    this way the upnphost service will automatically restart every 5 minutes with no visible presentation, so if it decides to misbehave and go high cpu, it will be for 5 minutes tops, you could change this to any interval you want.

    Comment by Inexorable — December 11, 2011 @ 10:39 pm

  5. Worked :)

    Comment by Rami M. Alloush — November 21, 2012 @ 6:20 pm

  6. i found somewhere that connectify call upnphost and if you remove connectify problem solve …. well it’s work for me

    Comment by CDVER — July 23, 2013 @ 4:47 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Silver is the New Black Theme. Create a free website or blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: