I run an external monitor at 2560 x 1440 retina, clamshell mode. When I switch to this resolution I can see the memory usage for WindowServer jump up. After a reboot it might be 800mb. However after sleep and wake it may be as high as 4 gigs or more.
I have an M1 MacBook Air with 8 Gigs of RAM which has been absolutely perfect until Sonoma. I frequently (daily) find it in an unusable state upon wake. Trackpad is slow to click (machine gunning sometimes) and display is not fully rendered. Occasionally I have seen the window that says its run out of RAM and I need to quit some applications. It never recovers, I need to disconnect, open and hold down touchID to force a restart.
I am guessing that it’s related to the WindowServer which is taking up more and more memory due to the external display and something is going haywire while its sleeping.
Has anyone else seen such behaviour? Nothing else has changed with my setup except that I have updated to Sonoma, first 14 then 14.1. It’s driving me crazy.