samschott / maestral

Open-source Dropbox client for macOS and Linux
https://maestral.app
MIT License
3.06k stars 65 forks source link

Hight memory usage on macOS after a sync #1016

Open igorkulman opened 5 months ago

igorkulman commented 5 months ago

Describe the bug When I start Maestral and no Dropbox files change so nothing needs to be synced the memory usage sits at around 100 MB. Bug after I change some files and sync happens the memory usage skyrockets to more than 1 GB and never goes down, I need to kill the app and start it again.

To Reproduce

Expected behaviour Even if memory usage spikes up when doing sync it should come back down eventually

System:

Additional context

"Idle" Screenshot 2024-01-24 at 16 21 08

"After sync" Screenshot 2024-01-24 at 16 19 44

samschott commented 3 months ago

That is indeed not working as intended. Maestral is typically very diligent in loading only small parts of files into memory as they are synced, at memory should be freed after each sync cycle.

Are there any particular patterns that you have noticed when this is happening, e.g., with particularly large files or with a large number of changes?