# What is WindowServer on a Mac?

WindowServer is the part of macOS that draws everything you see: every window, the menu bar, the Dock and every animation. Every app talks to it to put pixels on the screen, so it is always running. Do not quit it, because doing so logs you out and closes all your apps.

Source: https://activityplusmac.com/guides/what-is-windowserver

## Why WindowServer uses CPU

- Many open windows, especially across several desktops.
- More than one display, or a high-resolution external monitor.
- Transparency and motion effects.
- One app that redraws constantly, such as a video, a game or a badly behaved utility.

Because it draws on behalf of other apps, high WindowServer use is usually caused by something else.

## How to reduce it

1. Close windows and desktops you are not using.
2. Quit apps one at a time and watch whether WindowServer drops. That finds the app behind it.
3. In System Settings, open Accessibility, then Display, and turn on Reduce Transparency.
4. Disconnect an external display to see whether it is the cause.
5. Restart the Mac if its memory has grown very large.

## Is WindowServer a virus?

No. It is a core part of macOS and ships with every Mac. It lives inside the system folder and is signed by Apple.

## Other macOS processes people ask about

- kernel_task: the core of macOS. High CPU means the Mac is hot.
- mds_stores and mdworker: Spotlight indexing your files. It stops by itself.
- photoanalysisd: Photos scanning your library for faces and scenes.
- cloudd and bird: iCloud syncing.
- trustd: checking security certificates.

## What is normal for WindowServer

On a quiet Mac with one display, WindowServer uses a few percent of one processor core and a few hundred megabytes of memory. It rises while you scroll, drag windows or play video, and falls back when you stop. Sustained use above about 30 to 40 percent while nothing on screen is moving, or memory beyond a couple of gigabytes, points to one of the causes below.

## External displays and scaled resolutions

Displays are the most common cause. Each extra display adds work, and a scaled resolution adds more: macOS draws the picture larger than the panel and shrinks it to fit. If WindowServer is busy, open System Settings, then Displays, and try the Default setting for the external display. A 4K display set to look like 2560 by 1440 is the classic case.

## Find the app behind it

1. Open Activity Monitor and sort the CPU tab by % CPU.
2. Note the WindowServer figure, then quit the busiest ordinary app.
3. Wait ten seconds. If WindowServer drops, that app was the cause.
4. Repeat with the next app until it does.

Likely suspects are apps that redraw all the time: a video call, a game, an animated wallpaper or widget, a screen recorder, and window managers or menu bar utilities that draw overlays.

## How to restart WindowServer safely

Save your work, open the Apple menu and choose Log Out. Logging back in starts a fresh WindowServer. Restarting the Mac does the same and also clears anything else that has built up. Do not quit it from Activity Monitor: the result is the same log out, without the chance to save.

## Where WindowServer lives

Its file is at /System/Library/PrivateFrameworks/SkyLight.framework/Resources/WindowServer and it runs as the system user _windowserver. A process with a similar name that runs from anywhere else, such as your Downloads folder, is not the real one.

## With Activity+

Activity+ has a built-in library of common macOS processes. Select one and it says what it is, why it gets busy, what to do, and whether quitting is safe, pointless or harmful.

When a system process is the busy one, the diagnosis explains it and does not offer a Quit button that would log you out.

## Questions

### Can I quit WindowServer?

You can, but you should not. Quitting WindowServer logs you out immediately and closes every app, losing unsaved work. Logging out and back in is the safe way to restart it.

### Why is WindowServer using so much memory?

Its memory grows with the number of windows and displays. Display utilities and window managers can also make it grow over time. Restarting the Mac resets it.

### What does WindowServer do?

It composes the picture on your screen from what every app wants to show, and passes your clicks and key presses to the right app.

### Why is WindowServer using so much CPU?

Most often because of an external display at a scaled resolution, many open windows and desktops, or one app that keeps redrawing the screen. Quit apps one at a time to find it, and try the default resolution on the external display.

### How do I restart WindowServer on a Mac?

Log out from the Apple menu and log back in. That starts WindowServer again. Save your work first, because logging out closes every app.

### What is normal WindowServer memory use?

A few hundred megabytes to about 1 GB with one display. It grows with more displays and windows. If it has passed several gigabytes after days of use, log out or restart to reset it.
