WindowServer high CPU on Mac: causes and fixes
Safe to quit? NoMade by AppleWindowServer
WindowServer draws everything on your Mac's screen. What makes its CPU and memory climb, what is normal, and how to bring it back down.
WindowServer is the part of macOS that draws everything on your screen: every window, the Dock, the menu bar and the pointer. It is made by Apple, it always runs while you are logged in, and some CPU and memory use from it is completely normal.
When it climbs high, it is usually reacting to something else: lots of windows, extra or high-resolution displays, or an app that keeps redrawing.
What WindowServer does
Apple's manual page describes WindowServer as a system service for window management, content compositing and event routing. In plain words:
- Window management. It keeps track of where each window is and which one sits on top.
- Compositing. Each app draws its own windows. WindowServer combines them, with shadows, transparency and animations, into the single image your display shows.
- Event routing. When you click, type or scroll, WindowServer works out which window should receive it.
You cannot start or stop it yourself. macOS launches it at startup and it runs under its own system account, _windowserver, rather than yours.
Is WindowServer a virus?
No. Check that it is the real one by its location and signature.
In Terminal, this lists the full path of every running process with that name:
ps -Ao pid,comm | grep WindowServer
The real WindowServer runs from:
/System/Library/PrivateFrameworks/SkyLight.framework/Resources/WindowServer
Then check its signature. This only reads:
codesign -dvv /System/Library/PrivateFrameworks/SkyLight.framework/Resources/WindowServer 2>&1 | grep -E "Identifier|Authority"
On a genuine Mac you see:
Identifier=com.apple.WindowServer
Authority=Software Signing
Authority=Apple Code Signing Certification Authority
Authority=Apple Root CA
"Software Signing" is the certificate Apple uses for macOS itself. The file also lives on the sealed, read-only system volume, so a downloaded app cannot replace it. A process called WindowServer anywhere else, such as your Library folder or /tmp, is not the real one and is worth reporting to the guide on checking a Mac for malware.
Why WindowServer uses high CPU or memory
WindowServer's workload grows with what is on screen and how often it changes.
- Displays. More displays, higher resolutions and higher refresh rates all mean more pixels per second. A scaled resolution, where macOS draws a larger image and shrinks it to fit, adds work too.
- Windows. Every open window has to be kept in memory and composited, including ones hidden behind others.
- Constant redraws. Video, games, animated web pages, a screen recording or screen sharing session, or an app with a spinning animation all ask WindowServer to update many times a second.
- Visual effects. Transparency and blur behind the menu bar, sidebars and Dock cost a little extra on every frame.
What is normal
A few percent of CPU while you work is normal, and it rises while you drag windows, scroll or watch video. Its memory figure grows with the number and size of your displays and windows, because it keeps an image of each window ready to draw. Treat it as a problem only when it stays high while the screen is mostly still, or when the Mac stutters while you move windows.
How to calm WindowServer down
Work through these in order.
- Wait a moment. A burst during a Mission Control swipe or a window animation drops back within seconds.
- Find the app that keeps redrawing. In Activity Monitor's CPU tab, look at what sits next to WindowServer. A browser tab with video or ads, a game left open or a stuck app is often the real cause. Close the tab or quit the app and watch WindowServer fall.
- Close windows you are not using. Dozens of windows across several desktops all add up.
- Restart. Choose Apple menu > Restart. This clears out anything that has built up over weeks of use.
- Check your displays. In System Settings > Displays, try the display's default resolution instead of a scaled one, and unplug displays you are not using.
- Reduce transparency. In System Settings > Accessibility > Display, turn on Reduce transparency. Apple's display accessibility guide explains what it changes.
- Install updates. Choose System Settings > General > Software Update. Graphics fixes arrive in macOS updates.
What not to do
- Do not force quit WindowServer. Doing so ends your session at once and closes every app without saving.
- Do not delete or move it. It sits on the signed system volume and System Integrity Protection guards /System. Turning SIP off to tinker with it only makes your Mac less safe.
- Do not trust apps that promise to "fix" WindowServer. The fixes above are the ones that work.
How to see WindowServer in Activity Monitor
- Open Activity Monitor from Applications > Utilities, or press Command-Space and type its name.
- Choose View > All Processes.
- Type WindowServer in the search field.
- The CPU tab shows its share of one core, and the GPU view shows graphics work. The Memory tab shows how much it holds.
- Double-click it for details. The Open Files and Ports tab lists the program file at the top.
If WindowManager is busy at the same time, Stage Manager or window tiling may be involved. A hot Mac can also push kernel_task up the same list. For the wider picture, see why a Mac runs slow.
How Headroom helps
WindowServer is part of macOS, so Headroom's Speed screen leaves it out and lists your own apps instead, adding each app's helper processes together. That is useful here, because an app you installed that is behind WindowServer's workload, such as Chrome playing video, shows up near the top, with a Quit button that closes it normally. The screen also shows live CPU, memory pressure and whether the Mac is running cool, warm or hot. The Speed screen is free.
Download Headroom, read about the Mac performance monitor, or see the price of the $19 licence for the clean-up tools.
Questions
Is WindowServer a virus?
No. WindowServer is part of macOS and draws everything you see on screen. The real one runs from /System/Library/PrivateFrameworks/SkyLight.framework/Resources/WindowServer and is signed by Apple.
Why is WindowServer using so much CPU?
It works harder with more displays, higher resolutions, more open windows and anything that keeps redrawing, such as video, animations or a busy web page. The app causing the redraws is usually the real cause.
Can I force quit WindowServer?
Don't. Force quitting WindowServer ends your login session straight away, closing every app without giving them a chance to save. Restart the Mac normally instead.
Does an external display make WindowServer use more CPU?
It can. Each display adds pixels to draw, and scaled resolutions mean macOS draws a larger image and then shrinks it to fit, which is more work than the display's native resolution.