WindowServer memory leak (75GB RAM usage) possibly caused by USB-C to DVI

I've been trying to chase a memory leak with windowserver for months now and I think I have some hints at the conditions.


16" 2023 MBP

16GB RAM

Sonoma 14.5

-Samsung Odyssey G7 Neo


For months I've been having issues where WindowServer eats up Memory like crazy, rapidly escalating to 75GB in as much as a day. 3 days is the max I can go without a restart. For the longest time i thought the issue was triggered by one app after another but never really finding a definitive cause.


Now I'm beginning to believe that it's related to the Monitor connection method - HDMI vs. USB-C-DVI


I don't use the HDMI connection because theres a problem with they standby signal the MBP puts out to the monitor that prevents it from sleeping - it just endlessly cycles the monitor on and off while in standby mode. To prevent this while also taking advantage of higher refresh rate options, I've opted for an 8K USB-C to DVI connection. When the MBP goes into standby the monitor goes into standby properly as well.


BUT - When I'm using this cable, the WindowServer process goes crazy eating Memory, but not "Real Memory" which is always around 150-300MB, while memory eventually balloons to 75GB and triggers the out of memory prompt to shut down apps. Totally bizarre but posting here to see if anyone else has found a similar link.


I've switched back to trying the HDMI connection which still has the standby issue, but it looks like memory is stable right now.

MacBook Pro 16″, macOS 14.5

Posted on May 31, 2024 6:33 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 18, 2024 7:56 AM

Root cause identified as 165Hz mode on monitor - switching to 120Hz @ 2160p resolved the memory leak issue. Memory leaks most quickly when playing back videos in 165Hz mode.

2 replies

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 memory leak (75GB RAM usage) possibly caused by USB-C to DVI

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