32

I'm using a MBP 13" 2014 on macOS high Sierra with a 4k monitor.

The memory usage of WindowsServer can go quite high (up to 40 GB).

The only solution I found is to reboot my computer -- as the memory usage never goes down. The problem started with MacOS Sierra I think.

Does someone has a piece of advice or a better solution than rebooting my computer ?

enter image description here

And after closing all the running apps on my computer, it is nearly the same memory usage: enter image description here

  • Tried relaunching your browser? - that's using a colossal amount of RAM too, by the looks of it. – Tetsujin Jul 25 '18 at 09:33
  • 1
    Well, I was doing data analysis with Jupyter which explains the memory used by the browser. I just closed all my apps, I have 6.87GB of memory used by WindowServer. – Adrien Pacifico Jul 25 '18 at 09:50
  • 1
    Having the same problem on a mid-2012 MBP running 10.13 High Sierra and just using the built-in display. WindowServer was at about 6 GB of memory usage after 20 days of uptime. Closing Chrome didn't affect this noticeably; after doing so, WindowServer was responsible for more than half of the computer's total memory utilization. Logging in and out reduced WindowServer to 100MB of memory use even after reopening Chrome. – intuited Feb 07 '19 at 20:57
  • Further note: display is running at default resolution. – intuited Feb 07 '19 at 21:06
  • Same here - rises over time on Monteray. After restart it was 300MB. Now, a few hours later, having 18 windows open it's 1.46GB. Already saw it rise to around 4GB in previous sessions having around the same window count. – AlikElzin-kilaka Sep 28 '22 at 02:38

1 Answers1

22

According to this article this appears to be a bug in the system when used with a Scaled Display resolution

This seems to be a bug with scaled screen resolution (specially with 4K monitors) in MacOS High Seirra (and perhaps in older versions of the OS as well). Using "Default for display" screen resolution seems to fix the issue (Not my ideal resolution, but a temporary fix until an MacOS update with a fix is available). More information here: https://www.tonymacx86.com/threads/windowserver-memory-leak-on-high-sierra.233510/

I am using a scaled (external) display and I am facing a similar problem which is what led me to this topic.

nohillside
  • 100,768
nucc1
  • 336
  • Since I bought a new MBP 15" 2018, I do no longer have the issue (and I try to resell the old 2015 MBP 13'). Even though it does not solve the issue, I tick it as answered since I will not be able to check if one's answer is solving this issue.

    I a new answer comes up with a seemingly working solution I may change the tick.

    – Adrien Pacifico Apr 11 '19 at 09:11
  • 17
    Hi All, I've got the same problem with a MBA Retina 13" 2019 macOS Catalina 10.15.1. Any ideas welcomed. Thanks. – philippeko Nov 26 '19 at 15:35
  • 11
    I believe I'm still experiencing this issue with an external 4k monitor being scaled on macOS Big Sur 11.0.1. – David Gay Dec 02 '20 at 16:39
  • I don't have anything new to share on this, but it may be that you're looking at the Virtual Memory column and worrying perhaps? What does the "Real Mem" column in activity monitory show for WindowServer? On my MBP 15" 2017, it says Memory: 3GB, Real Mem: 173MB and I'm using 3x external displays, one of which is scaled. My OS is 10.15.7 though. – nucc1 Dec 03 '20 at 17:27
  • 1
    Still occurring on Catalina 10.15.6. Regardless of the "Real Memory" value, this leak is causing my MBP to start swapping. It took ages to even navigate to this page. Pretty ridiculous bug. – forresthopkinsa Dec 12 '20 at 06:16
  • If this is not intentional planned obsolesce, it's its more mundane and likely equivalent: deprioritizing projects to fix critical functionality on old hardware. (Which admittedly worked, purchasing a newer MBP today...) – ijoseph Dec 28 '20 at 21:09
  • 1
    Not sure new hardware is going to fix it @ijoseph. I'm running a macbook air with i7, 16GB ram, Catalina and WindowServer sits at 25% cpu when I'm doing nothing on the machine with a 4k unscaled monitor. Running YouTube full screen, over FIOS it glitches. My 6 year old MacbookPro runs better which is disappointing. Last mac I will use. Too many variables using USB dongles for HDMI. Wish they had a dedicated video port. – Richard Collette Jan 05 '21 at 15:39
  • Ah, I was using HDMI, 4k @ 30hz for my Macbook Pro 2012 Retina 15" (the very first retina model - MacBookPro10,2). And am still because my M1 is backordered until early Feb... will report back at that point. For reference, my work MBP - MacBook Pro (15-inch, 2018) doesn't have this issue on the same screen (but via Thunderbolt 3 instead of HDMI). – ijoseph Jan 05 '21 at 23:31
  • I observe similar problem on the MBP 15", late 2013 with discrete graphics card and an external 4K monitor connected with a miniDP-DP cable. MacOS is 10.14.6. WindowServer is the biggest RAM consumer, the next is the Google Chrome Helper (GPU). Activity Monitor shows system goes into the red zone on the memory tab quite often. – Mykola Mar 04 '21 at 12:53
  • The problem seems to be back on 11.5 and 11.5.1, on my 2019 with a Vega20, and an Asus PB287, running scaled 4K@60Hz over DisplayPort. Opening new tabs in Safari, and copy-pasting anywhere, get slower and slower. Logging out and back in fixes it. – David Krider Aug 05 '21 at 12:47