# Why Is svchost.exe Using So Much CPU on Windows

svchost.exe, shown as **Service Host** in Task Manager, is a container that loads Windows services from DLL files, so "svchost high CPU" always means one service inside it is busy. Expand the row in Task Manager or run `tasklist /svc` to name that service, then deal with it: Windows Update, Background Intelligent Transfer Service, Delivery Optimization, SysMain and Windows Management Instrumentation are names that often turn up, and each has its own fix. The genuine file is `C:\Windows\System32\svchost.exe`; a copy anywhere else is not Windows.

## What Service Host is

Microsoft's [service host article](https://learn.microsoft.com/en-us/windows/application-management/svchost-service-refactoring) describes Service Host as "a shared-service process that serves as a shell for loading services from DLL files". Services are grouped by their security needs, and each group runs in its own copy of `svchost.exe`, so a problem in one copy does not affect the others.

Since Windows 10 version 1703, PCs with more than 3.5 GB of RAM run most services in a Service Host of their own. Microsoft counts roughly 17 to 21 instances with grouped services and 67 to 74 with split ones, which is why Task Manager shows dozens of rows, each labelled with the service it holds, such as **Service Host: Windows Update**. A few services stay grouped, for example Base Filtering Engine with Windows Firewall, and RPC Endpoint Mapper with Remote Procedure Call.

## Find the service inside

1. Open Task Manager with `Ctrl + Shift + Esc`, sort **Processes** by **CPU** and expand the busy Service Host row. The services it holds are listed under it.
2. Right-click the row and choose **Go to details** to get its PID. The **Services** page in Task Manager lists every running service with the PID that hosts it.
3. From Command Prompt, [tasklist](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/tasklist) lists "all the service information for each process" with `/svc`:

```cmd
tasklist /svc /fi "IMAGENAME eq svchost.exe"
tasklist /svc /fi "PID eq 1234"
```

4. From PowerShell, the [Win32_Service](https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-service) class carries each service's `ProcessId`, so one line answers "which services are in this PID":

```powershell
Get-CimInstance Win32_Service -Filter "ProcessId = 1234" | Select-Object Name, DisplayName, State, StartMode
```

Replace `1234` with the PID from Task Manager. To find the hungriest copies without Task Manager, `Get-Process svchost | Sort-Object CPU -Descending | Select-Object -First 5 Id, CPU` works, but `CPU` there is total processor seconds since each copy started. A host that has run for days can top that list without being busy now, so take two readings a minute apart.

## The usual names, and where to go next

| Service (name) | What Microsoft says it does | Next step |
| --- | --- | --- |
| Windows Update (`wuauserv`) | "Enables the detection, download, and installation of updates" | Let it finish, see [Windows Update stuck](/windows/blog/windows-update-stuck) |
| Background Intelligent Transfer Service (`BITS`) | "Transfers files in the background using idle network bandwidth" | Usually downloads for Windows Update, wait |
| Delivery Optimization (`DoSvc`) | Downloads updates and can share them with other PCs | See [deleting Windows Update files](/windows/blog/delete-windows-update-files) |
| SysMain (`SysMain`) | Keeps frequently used programs ready in memory | See [SysMain high disk](/windows/blog/sysmain-high-disk-windows) |
| Windows Management Instrumentation (`Winmgmt`) | "Provides a common interface and object model to access management information" | Find the program asking, see [WMI Provider Host](/windows/blog/wmi-provider-host-high-cpu) |

The service descriptions for Windows Update, BITS and WMI are quoted from Microsoft's [services guidelines for Windows Server 2016](https://learn.microsoft.com/en-us/windows-server/security/windows-services/security-guidelines-for-disabling-system-services-in-windows-server). Two names that people expect here run in processes of their own: Windows Search shows as `SearchIndexer.exe`, see [Windows Search indexer high CPU](/windows/blog/windows-search-indexer-high-cpu), and Microsoft Defender as Antimalware Service Executable, see [its own article](/windows/blog/antimalware-service-executable-high-cpu).

| You see | Likely cause | Try |
| --- | --- | --- |
| Service Host busy for a while after an update or a fresh install | Windows Update, BITS or Delivery Optimization working | Leave the PC on and plugged in |
| Busy every few seconds all day | A program polling WMI | Find that program, not the service |
| Disk at 100% on a hard drive with SysMain busy | The drive cannot keep up | Test with SysMain stopped |
| One host suddenly heavy after installing software | That software's own service | Update or remove it |
| `svchost.exe` running from a folder other than `C:\Windows\System32` | Not Windows | Scan with Windows Security |

## Check that it is the real svchost.exe

The genuine file lives in `C:\Windows\System32`. In Task Manager's **Details** page, right-click any `svchost.exe` and choose **Open file location**, or list every copy's path at once:

```powershell
Get-Process svchost | Select-Object Id, Path | Sort-Object Path -Unique
```

Every row should show `C:\Windows\system32\svchost.exe`. A copy in your user folder, `AppData`, `Temp` or `C:\Windows` itself, or a near spelling such as `svhost.exe` or `scvhost.exe`, is a different program using a trusted name. Scan it with Windows Security and look at what installed it.

## What not to do

- Do not end a Service Host to stop the CPU. It stops every service inside that copy, and the work that asked the service to run is still waiting.
- Do not disable Windows Update, BITS or WMI permanently. Microsoft's description of BITS warns that apps depending on it, Windows Update among them, can no longer download automatically, and WMI's says most Windows software will not work properly without it.
- Do not judge it by the number of Service Host rows. Dozens of them is how Windows runs on a PC with more than 3.5 GB of memory.

## Where Mole fits

Mole for Windows' **Status** page folds the service hosts in session 0 into one row. **Why is this running?** in the row's menu names the first services, busiest copy first, and counts the rest, so the one you want may be behind that count; it also lists the heaviest copies, and clicking one shows that copy's services. A single busy service is not separated out on its own, so read its own numbers in Task Manager. Mole marks service hosts as **System** and offers no **Terminate** or **Force Quit**. Its startup list leaves out services hosted from the Windows folder, so it has no switch for the services inside a Service Host. For other names, see [Windows processes explained](/windows/blog/windows-processes-explained) and [High CPU usage on Windows](/windows/blog/windows-high-cpu-usage).

## FAQ

### What is svchost.exe?

It is Service Host, the Windows process that loads services from DLL files. Each copy hosts one service or a small group, which is why Task Manager shows many of them.

### How do I find which service is using CPU in svchost?

Expand the busy Service Host row in Task Manager, or run `tasklist /svc /fi "PID eq 1234"` with that copy's PID.

### Is svchost.exe a virus?

Not when it runs from `C:\Windows\System32`. A copy in any other folder, or a near spelling of the name, should be scanned with Windows Security.

### Can I end svchost.exe?

Ending a copy stops every service inside it at once, and some keep the network or sound working. Find the busy service and deal with that instead.


Canonical: https://mole.fit/windows/blog/svchost-high-cpu-windows
