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