WindowServer CPU is always high and memory is leaking on macOS Moterey 12.1 (21C52)

Nothing helps with it. What can be done?

MacBook Pro 16″, macOS 12.1

Posted on Dec 31, 2021 1:59 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 24, 2022 6:08 AM

I am pretty sure the issue is a Apple WindowServer process caching issue. If you scale your display I know that will make windowserver memroy group much faster, and have higher CPU. Also using multiple desktops will cause the issue to be more prevelant. And of course mouse customizations.


Much like how a web browser caches images, so does windowserver caches video artifacts, just does so poorly with a lack of efficient garbage cleanup. I am sure it will get better in a year or so as they devs get more time to analyze the cause and tweak windowserver garbage cleanup. Until then, dont scale your display, done use a custom mouse, try not to use virtual desktops. When the CPU gets crazy, or memory on WindowServer, kill the process. it will close all your apps, but will clear the windowserver cache. Little faster that restarting.

Similar questions

11 replies
Question marked as Top-ranking reply

Jan 24, 2022 6:08 AM in response to maximtopmac

I am pretty sure the issue is a Apple WindowServer process caching issue. If you scale your display I know that will make windowserver memroy group much faster, and have higher CPU. Also using multiple desktops will cause the issue to be more prevelant. And of course mouse customizations.


Much like how a web browser caches images, so does windowserver caches video artifacts, just does so poorly with a lack of efficient garbage cleanup. I am sure it will get better in a year or so as they devs get more time to analyze the cause and tweak windowserver garbage cleanup. Until then, dont scale your display, done use a custom mouse, try not to use virtual desktops. When the CPU gets crazy, or memory on WindowServer, kill the process. it will close all your apps, but will clear the windowserver cache. Little faster that restarting.

Jan 3, 2022 2:38 AM in response to maximtopmac

Suggest downloading the Application Etrecheck directly from a well Respected ASC Contributor. 


The application is free or paid from added features. 


Run the application with Full Disc Access ( Security & Privacy - Full Disc Access ).


It will take a Snap Shot -  both the hardware and software.


 The Report will Not Reveal Any Personal Information. 


Post back the Full Report - copy and paste - using the Additional Text Icon ( 3rd Icon to last )


We can have a look at the report for possible issues and may have possible suggestions to resolve the issues.


Any Third Party Applications that will interfere with the normal operation of the OS, alter, modify, remove or delete or attempt to do so is an invitation for disaster and may require a Reinstallation of the OS.


This includes AntiVirus, Disk Cleaners, Disk Optimizes, UnInstaller etc.


The The Built in Security  is all that is required.

Jan 2, 2022 8:53 AM in response to maximtopmac

The % value of CPU in Activity Monitor is based on 1 core. Not infrequently processos can use more CPU than 100% of 1 core since all recent computers have more 1 core.


WindowServer is what draws the pixels on your screen. Thus, reducing refresh should reduce %CPU


maximtopmac wrote:

Measured by the activity monitor

CPU used is always higher than 100% which is, I suppose is much for WindowServer

I've found that switching to 60 Hertz reduces memory use by WindowServer, I'll try it.


Jan 3, 2022 2:32 AM in response to lllaass

The % value of CPU in Activity Monitor is based on 1 core. Not infrequently processos can use more CPU than 100% of 1 core since all recent computers have more 1 core.
WindowServer is what draws the pixels on your screen. Thus, reducing refresh should reduce %CPU


Thank you for the explanation, but this doesn't explain why memory usage is growing with time.

Jan 2, 2022 8:13 AM in response to Owl-53

Measured by the activity monitor


CPU used is always higher than 100% which is, I suppose is much for WindowServer

WindowServer	142,5	10:06:12,42	25	309	Apple	43,1	1:00:34,12	156	_windowserver	2,43 GB	2 846	(null)	-	No	Yes	0 bytes	0 bytes	0	0	0 bytes	0 bytes	0 bytes	0 bytes	0 bytes	No	Yes	Yes	0 bytes	0 bytes	(null)

And memory used grows with time

WindowServer	2,41 GB	24	2 844	156	_windowserver	108,3	10:08:00,28	326	Apple	37,5	1:00:53,67	(null)	-	No	Yes	0 bytes	0 bytes	0	0	0 bytes	0 bytes	0 bytes	0 bytes	0 bytes	No	Yes	Yes	0 bytes	0 bytes	(null)	


I don't know what exactly causes the memory leak, I just use my notebook as usual.


I've found that switching to 60 Hertz reduces memory use by WindowServer, I'll try it.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

WindowServer CPU is always high and memory is leaking on macOS Moterey 12.1 (21C52)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.