Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows 10 / Fixing High CPU Usage and Memory Leak Issue by Svchost.exe (wuauserv)

September 19, 2022 Windows 10Windows 7

Fixing High CPU Usage and Memory Leak Issue by Svchost.exe (wuauserv)

The wuauserv service is a standard Windows update service that is used to scan a computer, search, download, and install new security patches and updates from Windows Update or local WSUS servers. In some cases, the wuauserv service may not work correctly, causing excessively high CPU and RAM usage. Due to the fact that the wuauserv is running inside the container process svchost.exe, it looks for the user that the svchost process is using too much RAM and CPU resources on your Windows device. In this article, we’ll show you how to solve the problem of high memory and CPU usage by the wuauserv process in Windows 7 and Windows 10.

Contents:
  • Wuauserv Service in Windows 7 Uses Up to 50% of CPU and Memory
  • Wuauserv: High CPU and Memory Usage on Windows 10

Wuauserv Service in Windows 7 Uses Up to 50% of CPU and Memory

Some users began to complain about poor performance issues on their computers running Windows 7. The problem manifests itself as follows: daily at one and the same time (each user at own time) the computer begins to slow down. The Task Manager shows that the process svchost.exe uses up to 1.2-2 GB of memory and up to 100% CPU of one core. As a result, it is impossible to use the computer during 30-60 minutes: it becomes terribly slow and constantly hangs.

Problems have appeared on Windows 7 SP1 x86 and x64 clients when receiving updates from the local SCCM server (used to manage Microsoft updates on clients). Run Task Manager on a client and sort the running processes by the memory or CPU usage in the Processes tab. You can see that the current process svchost.exe is using 11% CPU and 1.2 GB of memory. In fact, the svchost.exe is a container process, in which other programs and system service threads are running. Using Task Manager, you won’t be able to understand, which thread (service) causes high system load.

High Memory Usage by process Svchost.exe

More detailed information about a process and its threads can be obtained using Process Explorer utility.

Run procexp.exe and find the problem process svchost.exe that uses too much memory and / or CPU.

svchost.exe high memory usage

Open its properties and go to the Threads tab. Here you can clearly see that the wuauserv (Windows Update) thread consumes the most part of the CPU and memory within the svchost.exe process (the wuauserv service scans the system and the update server for updates). Due to some code problems, the wuauserv begins to leak and consumes all available memory up to 1.5-2 GB (maximum size available for the process) and starts actively using the paging file. The system gets slow.

What’s interesting is that the problem more often appears on the clients having 2 GB of RAM. If a PC is having 4 GB of memory or higher, the problem is not so obvious to the users, because the memory leaks in wuauserv doesn’t exceed 2 GB.

If you stop wuauserv using services.msc console, the high memory and CPU load in your Windows will reduce drastically. And svchost.exe starts to use only 180-200 MB of memory.

Important. It doesn’t mean that you have to stop wuauserv and keep it disabled, since the system will stop to receive security updates and run the risk of hacker attack.

wuauserv - high cpu and memory usage

First of all, we have tried to reset the settings of Windows Update agent following the instructions given in the article “How to Reset Windows Update Agent Configuration“. The problem was solved and has not appeared for some days, but later it has occurred again. It seems that the size of the local cache and the update database reaches some limit, and wuauserv starts using memory high (leak) again.

We have tried a lot of other methods, but only the installation of the following patches for Windows Update agent really helped:

  • https://support.microsoft.com/en-us/kb/3050265 (The update of Windows Update agent from June, 2015);
  • https://support.microsoft.com/en-us/kb/3065987 (The update of Windows Update agent from July, 2015);
  • https://support.microsoft.com/en-us/kb/3102810 (The patch for Windows 7/ 2008 R2, which allows to solve the problem of high CPU and memory load during the installation of updates using WSUS, from November, 2015).
Tip. We installed patches not on all computers with Windows 7, but only on those on which users had reported the similar problem.

After the updates have been installed, the memory usage by wuauserv process has reduced to 200 MB, and the update scanning process has taken much less time.

Wuauserv: High CPU and Memory Usage on Windows 10

The problem when the Windows Update service loads the processor high and uses too much memory, also occurs in different Windows 10 builds.
Open the Task Manager and find the process svchost.exe which consumes too much memory or CPU resources. Right click on it and select “Go to Services“.

svchost.exe go to the service

Verify that the wuauserv service is running as part of this svchost.exe process (Windows Update service). Make sure that the wuauserv (Windows Update service) is running as part of the svchost.exe process.

wuauserv

Since the Task Manager doesn’t allow you to determine which of the system services running inside the svchost process causes a high computer load, you need to use Process Explorer (as described above). Make sure that the high CPU and/or memory load is caused by the wuauserv service (in our example this is the C:\WINDOWS\system32\wuaueng.dll library).

wuauserv high CPU and memory

Unlike the above case with a memory leak in the update service in Windows 7,  there is no universal patch that fixes the problem for Windows 10. Below we list the basic steps that you should take to reduce the memory and CPU usage by the Windows Update service.

Wait for Windows Updates to Install

If the Windows Update service is currently scanning your computer or installing updates, then a high load of the computer should not surprise you. Try to wait (1-2 hours depending on the performance of the computer) and wait until wuauserv finishes downloading and installing updates.

Run the Windows Update Troubleshooter

Try to diagnose Windows Update Service 10 with the integrated Window Update Troubleshooter. Go to the Settings -> Update and Security -> Troubleshoot. Select item Windows Update (Resolve problems that prevent you from updating Windows) -> Run the troubleshooter.

run the windows update troubleshooter

The utility will check the status of the service and try to fix the problems found.

windows update troubleshooter fixed error

Clear the SoftwareDistribution and catroot2 folders

Try to reset the SoftwareDistribution and catroot2 folders.

  • The C:\Windows\SoftwareDistribution folder stores temporary Windows Update service files and downloaded update files;
  • The %windir%\System32\catroot2 folder contains the signatures of the update packages.

Let’s try to clean them with the following script (save the code into a text file with the * .bat extension and run it as administrator):

attrib -h -r -s %windir%\system32\catroot2
attrib -h -r -s %windir%\system32\catroot2\*.*
net stop wuauserv
net stop CryptSvc
net stop BITS
ren %windir%\system32\catroot2 catroot2.old
ren %windir%\SoftwareDistribution SoftwareDistribution.old
ren "%ALLUSERSPROFILE%\application data\Microsoft\Network\downloader" downloader.old
net Start BITS
net start CryptSvc
net start wuauserv

Check and Repair Windows System Files and Component Store

Check and repair the system files of your Windows image with the following commands:

sfc /scannow
and
DISM /Online /Cleanup-Image /RestoreHealth

dism cleanup-image

Check your computer for viruses

Check your Windows for viruses in offline mode using a rescue disk (Kaspersky Rescue Disk or Avira Rescue System).

Update your Windows 10

  1. Update your version of Windows 10 by installing the current build;
  2. Manually download and install from Microsoft Update Catalog (https://www.catalog.update.microsoft.com/Home.aspx) the last cumulative updates for your Windows version (Microsoft fixes bugs and various Windows errors every month and adds fixes to the cumulative update package).

Turn off Windows Update Delivery Optimization

Go to the Settings -> Updates and Security-> Windows Update -> Advanced Options -> Delivery Optimization. Disable the option “Allow downloads from other PCs” and reboot your device.

disable delivery optimization

Uninstall the latest Widows updates

If the problem with high CPU and memory utilization by the wuauserv service occurred immediately after the installation of new Windows updates, try to uninstall this updates one by one (Control Panel -> Programs and Features -> View Installed Updates). Sort the updates by installation date, right click on the update, and select Uninstall.

unistall windows update

Disable Windows Update Service

I never recommend you to disable the Windows Update service, since you will stop receiving security updates and expose your computer to the risk of hacking or infection. Disabling the update service can be used as a temporary step, when other ways to restore the normal operation of the system won’t help.

Open the Services management console (services.msc), find the Windows Update service, stop it and change the startup type to Disabled. Save the changes and restart the computer.

disable windows update service in windows 10

On the second Tuesday of the following month, be sure to manually download and install new cumulative updates for your Windows 10 build. Enable the wuauserv service. Perhaps your problem will be fixed in the new updates.

7 comments
0
Facebook Twitter Google + Pinterest
previous post
Configuring Kerberos Authentication in Different Browsers
next post
Replacing a Failed Physical Disk in Storage Spaces Direct on Windows Server 2016

Related Reading

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

How to Use Ansible to Manage Windows Machines

September 25, 2023

Installing Language Pack in Windows 10/11 with PowerShell

September 15, 2023

How to View and Change BIOS (UEFI) Settings...

September 13, 2023

7 comments

tim September 19, 2016 - 5:05 pm

My pc automatically installed update kb3065987 in July 2015.  However, my pc has a recent problem with wuaserv consuming 100% of cpu.  If I temporarily stop wuaserv from running then cpu usage goes back to normal.  Advice, please?

Reply
admin September 20, 2016 - 5:01 am

Try to install last version of Windows Apdate agent (Windows Update Client for Windows 7 and Windows Server 2008 R2: June 2016 – https://support.microsoft.com/en-us/kb/3161647) and July 2016 update rollup (https://support.microsoft.com/en-us/kb/3172605)

Reply
Mac November 26, 2016 - 2:04 pm

Incredibly useful this. Solved part of my high cpu usage issue by reducing it from 30%/40% to 16%/17%

Thanks for posting this

Reply
that_dude February 24, 2017 - 3:33 am

@admin thanks so much for the fix! This helped me resolve my issue with svchost.

Reply
Rainer Haupt December 5, 2016 - 4:02 pm

I found the problem of wuauserv high CPU load on 3 customer PCs with Win10 and old Dual Core CPUs. At CHIP.de there is a Win7 and also a Win10 Update Pack for download. You may find an English Update Pack somewhere else. Installing this Update Pack will fix this problem.

Reply
irvin January 16, 2017 - 10:10 pm

Re: FIRE
The link you give works BUT the link at the web page for the x86 update goes to a dead link. 🙁

Reply
angelina grey May 23, 2017 - 4:11 pm

The thing that makes RAM compression work so well now is multi-core
processors. In a lot of cases you won’t notice a performance hit from
the compression/decompression because the work is being done on an
otherwise under-used core. Also, since comp/de-comp are simple processes
for your CPU and the read and write are both to memory, the process is
very fast.

I’m really glad Windows has this feature now.

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Booting Windows 7 / 10 from GPT Disk on BIOS (non-UEFI) systems
  • Removable USB Flash Drive as Local HDD in Windows 10 / 7
  • How to increase KMS current count (count is insufficient)
  • How to Disable UAC Prompt for Specific Applications in Windows 10?
  • Managing Printers and Drivers with PowerShell in Windows 10 / Server 2016
  • Managing Printers from the Command Prompt in Windows 10 / 8.1
  • Fix: RDP Authentication Error Has Occurred – The Function Requested Is Not Supported
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top