Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aschekatihin/8f7d1c79ee63f6bd9a876f55f8e8b9af to your computer and use it in GitHub Desktop.
Save aschekatihin/8f7d1c79ee63f6bd9a876f55f8e8b9af to your computer and use it in GitHub Desktop.

Windows Update 100% CPU usage and stack

+---svchost.exe  -> parent proc, use cpu
|
\---wuauclt.exe  -> child proc, Windows Update module

rebuild DB

http://support.microsoft.com/kb/875560

stop Automatic Updates

  1. run services.msc
  2. stop Automatic Updates

delete DB

  1. open %windir%\SoftwareDistribution
  2. open DataStore\
  3. move DataStore.edb Logs\
  • mkdir _oldlogs
  • move * _oldlogs\

activate Automatic Updates

  1. run services.msc
  2. restart Automatic Updates

detail

C:\WINDOWS\SoftwareDistribution\DataStore>dir /s DataStore.edb
 Volume in drive C is ****
 Volume Serial Number is ****

 Directory of C:\WINDOWS\SoftwareDistribution\DataStore

2013/11/22  01:18         1,056,768 DataStore.edb
               1 File(s)      1,056,768 bytes

 Directory of C:\WINDOWS\SoftwareDistribution\DataStore\_oldlogs

2013/11/22  01:10       141,565,952 DataStore.edb
               1 File(s)    141,565,952 bytes

     Total Files Listed:
               2 File(s)    142,622,720 bytes
               0 Dir(s)  397,668,761,600 bytes free

C:\WINDOWS\SoftwareDistribution\DataStore>
C:\WINDOWS\SoftwareDistribution\DataStore>tree /f /a
Folder PATH listing for volume ****
Volume serial number is ****
C:.
|   DataStore.edb
|
+---Logs
|       edb.chk
|       edb.log
|       res1.log
|       res2.log
|
\---_oldlogs
    |   DataStore.edb
    |   WindowsUpdateUsageCPU100Percent.md
    |
    \---Logs
            edb.chk
            edb.log
            edb004DC.log
            res1.log
            res2.log
C:\WINDOWS\SoftwareDistribution\DataStore>

retry Windows Update

but 100% CPU usage again...

so take a long time(approx. 1H+), update scan finished

KB**** svchost problem

it's seems that this problem

Svchost.exe 100% CPU usage, and spend long long time when Windows Update

  • KB2846071
  • KB2862772
  • KB2870699
  • KB2879017

http://blogs.technet.com/b/jpwsus/archive/2013/10/18/windows-xp-windows-server-2003-windows-update-svchost-exe-cpu-100.aspx (ja)

manual download

below patches for

  • Internet Explore 8
  • Windows XP SP3
  • 32-bit (x86)
  • Japanese

KB2846071

KB2862772

KB2870699

KB2879017

step-by-step reboot after apply one patch

retry Windows Update

100% CPU usage again, but take a short time

Error Code 0x80246008

all patches failed to apply, cause error 0x80246008

check service of BITS http://support.microsoft.com/kb/910337

  • vaild regstry keys for BITS
  • [-] missing BITS on services.msc

reinstall BITS

http://support.microsoft.com/kb/842773

but reinstall failed (prob. uninstall -> reboot -> install)

fix BITS

> are exec on cmd.exe

  1. regsvr32 qmgr.dll

  2. regsvr32 qmgrprxy.dll

  3. reboot
  4. run %windir%\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %windir%\inf\qmgr.inf
  • place %windir%\ServicePackFiles\i386
  • C:\WINDOWS\ServicePackFiles\i386\qmgr.dll
  • failed copy files, but skip errors
  1. reboot
  2. run services.msc
  • open "Background Intelligent Transfer Service"
  • start service
  • file missing, start failed
  1. Reg add HKLM\SYSTEM\CurrentControlSet\Services\BITS\Parameters /v ServiceDll /t REG_EXPAND_SZ /d %windir%\System32\qmgr.dll

  2. reboot
  3. manually start BITS
  • open "Background Intelligent Transfer Service"
  • still started
  1. Reg add HKLM\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup

  2. reboot
  3. manually start BITS
  • open "Background Intelligent Transfer Service"
  • change startup type to "Automatic"

http://support.microsoft.com/kb/916251/en-us

insane

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment