Solution to svchost.exe occupying 99% of CPU

Source: Internet
Author: User
Solution to svchost.exe occupying 99% of CPUAuthor: jothui Date:

Svchost.exe occupies 100% of CPU resources, which makes it a headache for me many times. Each solution is very simple. I disable the automatic upgrade of Windows Update, the upgrade was done manually, but today I found a simpler method. I looked at the solutions provided by many people. I also took these methods for my own learning and reference, I hope that this problem will be solved in the future:

Symptom:

  1. The process of running the machine suddenly becomes very slow. The process svchost.exe accounts for 100% of the system CPU resources.
  2. Just unplug the network cable. After the Internet connection is re-connected, svchost.exe occupies 99% of CPU resources.
  3. After Windows Update is disabled, the problem is solved:

Worker occupies a large amount of CPU resources. This is the reason first, but you can try this method to check whether it is a virus or malware.

Solution:Try to clear all the files in the C:/Windows/softwaredistribution directory and restart the machine.

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> Administrative Tools> services, find "Automatic Updates", and set it to manual start,
  • Restart and delete C:/Windows/softwaredistribution. The problem is solved.
  • Then open the Control Panel> Administrative Tools> services, find "Automatic Updates", and restart automatically.

Cause analysis:

To put it bluntly, svchost.exe: Many system services must be started by this process. Without this process, our system will be unable to use many things. For example, without this service machine, we can hardly access the network. Many application services rely on this interface rpc. If you find that this process occupies too many CPU resources,

If you disable the system's RPC service directly, the system will be finished because the system service setting interface on the restore interface cannot be used. Recovery method requiredUse the Registry Editor, find HKEY_LOCAL_MACHINE> system> CurrentControlSet> services> RPCSS, find the start attribute on the right, change the value to 2, and then restart.

The reason that svchost accounts for 100% of the system CPU is not the svchost service itself: the above situation is caused by the Windows Update Service download/installation failure, resulting in repeated retry of the update service. Moreover, the automatic updating of Windows is also dependent on a backend application of the svchost.exe service, with a high load. Machines that often encounter such problems are generally machines with unstable Internet conditions, and the second week of each month is a high incidence: in recent years, Microsoft has regularly released patches on the second week of each month.

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.

The solution that spoolsv.exe accounts for 99% of the CPU is also encountered. Windows makes us really a headache.

Here is another way to solve this problem. I will take it for your reference:
Wake up and smell the coffee> eat svchost.exe from all CPU resources

When I got home, I found my PC and my notebook at home, inexplicably, all the CPU resources will be used by svchost.exe again (the strange old man always complained to me that the notebook of the new version is always running very slowly xd ). As soon as I saw this situation, I was suddenly confused, so the CPU usage was always stopped at 100%, it took half a day to take two computers for virus, Trojan, and Windows Update. The hacker still attacks my CPU. I had to turn to Google for help. I tried a lot of solutions and tried to use them. However, Huang Tian was always a tough guy, and finally let me find a way to understand the decision.

Svchost.exe has many reasons for consuming all CPU resources, but my memory is generated during windwos Update (or when the automatic update service is automatically updated ). Therefore, the solution is to reset the automatic update of Windows. The steps are as follows:

1. First, check the quota of the system service.
1. Click "start"-> "Confirm", and then click "OK" after "services. msc" is entered 」.
2. Click 2 in the service "Automatic Updates.
3. Click "Log on" to confirm your logon identity as "Local System Administrator" and "allow interaction between services and desktops 」"No"Selected.
4. confirm that the service has been used in the current "Hardware preset". If not, press "Disable" and press "renew.
5. Click "General" to confirm "dynamic type" as "automatic", and then press "dynamic" to renew the service.
6. Repeat the services of Background Intelligent Transfer Service (BITs ~ Step 5.

2. Restart the component that updates windwos.
1. Click "start"-> "begin row 」.
2. Enter "regsvr32 wuapi. dll" in "dig" and then press Enter.
3. When the message "dllregisterserver succeeded in wuapi. dll" is displayed, click "OK 」.
4. Repeat the preceding steps to re-install the following components
Regsvr32 wuaueng. dll
Regsvr32 wuaueng1.dll
Regsvr32 ATL. dll
Regsvr32 wucltui. dll
Regsvr32 wups. dll
Regsvr32 wups2.dll
Regsvr32 wuweb. dll

3. Finally, clear Windows Update packages that may have already been installed.
1. Click Start> confirm 」.
2. Run the following command in the prompt text. (If any response is received, please reactivate the host and then renew the operation again.)
Net stop wuauserv
2. Click "start"-> "begin row", enter "% WINDIR %", and click "OK 」.
3. Find "softwaredistribution" and rename it "sdold 」.
4. Click "start"-> "Confirm", click "cmd", and then click "OK". Then, run the following command in the command prompt text.
Net start wuauserv

4. Success!

 

References:

  • Svchost.exe CPU usage 100%, when my windows using automatic update
  • Svchost.exe eats all CPU resources
  • Solution to svchost.exe occupying 100% of CPU

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.