Solution to svchost.exe CPU usage of 100%

Source: Internet
Author: User
Tags temporary file storage

Symptom:

  1. After the machine starts and runs for a few minutes, svchost.exe will account for 100% of the system's CPU resources.
  2. Unplugging Network cable After the Internet connection is reconnected, svchost.exe accounts for 99% of CPU resources;

Solution:

Suppose you have used free anti-virus software to exclude viruses and anti-spyware to eliminate the impact of malware:
How to clear C: \ WINDOWS \ softwaredistribution
Restart the machine for all files in the directory.
. (C: \ WINDOWS \ softwaredistribution is Windows
Temporary File storage directory of the Update Service)

If the machine prompts that the file is in use (the "Automatic Updates" service is running), the corresponding directory cannot be deleted:

  • Choose Control Panel ==> management tools ==> service, find "Automatic Updates", and set it to manual start,
  • After restarting, delete c: \ windows \ softwaredistribution. The problem is solved.
  • Then open control panel ==> management tools ==> service, find "Automatic Updates", and restore to automatic start and restart.

Note: After the restart, it is best to allow the system to complete automatic system updates in areas with good internet access conditions.

Promotion: encounter similar problems should be quite a lot, if you also find this method useful, please put the http://www.chedong.com/blog/archives/001286.html
Add this link to your blog.

Cause analysis:

Let's talk about svchost.exe: Simply put, without this service machine, the network is almost impossible. Many application services use this interface rpc. If you find that this process occupies too many CPU resources,

Disabling the system's RPC service directly is a disaster: the system service setting interface cannot be used even to restore the interface. Recovery method requiredUse Registry Editor to find
HKEY_LOCAL_MACHINE> system> CurrentControlSet> services
> RPCSS. Find the start attribute on the right and change the value to 2. Then restart the system.

The reason that svchost accounts for 100% of the system CPU is not the svchost service itself:
This error occurs when the Update service fails to be downloaded or installed. Moreover, the automatic updating of Windows is also dependent on a backend application of the svchost.exe service, with a high load.
Machines that frequently generate such problems are generally unstable machines that provide Internet access conditions (especially those that go abroad). For example, the machines of parents at home often occur occasionally after several months of installation, the second week of each month is a high-risk period: Because ms has regularly released patches in the second week of each month in recent years ).

The above solution does not ensure that the attack is not repeated, but it is a waste of time to reinstall the operating system every several months for the svchost file.

Lesson: The spoolsv.exeand svchost.exe problems are caused by automatic retry upon application failure/exception. We wanted to save time for the design, but the retry frequency was too high, resulting in the same effect as the virus.

References:

  • Svchost.exe CPU usage 100%,
    When my windows using automatic update
  • Svchost.exe eats all CPU worker sources
  • Microsoft Official Note: When you use "Auto Update" to search for updates or update Windows Installer applications
    Svchost.exe Process Problems
  • How to track svchost.exe in Windows Update

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.