-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High WindowServer memory usage over time #128
Comments
I think it probably has to do with the hidpi option. With it disabled, I have never seen any memory problems in window server. |
Same here. After installing Aerospace with JankyBorders I noticed when I watch a YT video in Safari with just 4 tabs open the video starts to lag sometimes. I opened ActivityMonitor and saw the top CPU consumer was WindowsServer at 36%. After disabling and uninstalling the borders, I restarted and now the video plays smooth even at 1.75x speed in same browser with same windows open with same Aerospace config, and ActivityMonitor shows CPU consumption for WindowsServer is just 17-18%. It's definitely an issue. ENV: macOS 14.6.1 (23G93), Apple Air M1, 16 GB memory. My #!/bin/bash
options=(
style=round
width=3.0
hidpi=on
active_color=0xff39FF14 # neod green, default - 0xffe2e2e3
inactive_color=0x00000000
)
borders "${options[@]}" UPD: tried with P.S. useful utility, thanks for your hard work, I hope you can fix the issue and I'll give it a try again in the future. |
Does this also happen when not using aerospace at the same time? |
That is a good question, maybe Aerospace also contributed and after adding borders it was already over the threshold and became noticeable, indeed. I'll test "borders" with Aerospace disabled, with just normal macOS setup. |
So the results are interesting. I've enabled While Activity Monitor, actually, showing CPU load averageing between 36 and 42% load again, it does not show in any way, the system GUI is still smooth and video does not get stuck or loose frames, etc. If I'd never look in Activity Monitor - I'd never know the CPU usage is up again. So it's not CPU alone issue, nor it's |
I use yabai and have never encountered such problem personally. |
The longer
borders
run, the higherWindowServer
memory usage would be. One time (about 1 - 2 days of uptime) I catched it using almost 4GB of memory, whileborders
itself only took like 500MB. Stopping and restarting borders releases the memory instantly -WindowServer
from 4GB+ -> 500MB.I didn't manage to get the screenshot though. Is there a way to fix this?
Edit: Here's my
bordersrc
:The text was updated successfully, but these errors were encountered: