Big RAM usage
Describe the bug
I use memos to store highlights of my day with my daughter. I post on a daily basis, each memo has a couple of photos and sometimes a short video or two. Recently when browsing the history, memos started eathing RAM like crazy. It got bad to the point where when I browsed it, my server (Ryzen 3550H + 16 GB RAM) was deadlocking due to fast RAM consumption. I've limited RAM in docker-compose, so now instead of the system crashing, just the app crashes. I'll be happy to provide whatever logs / info you need to debug this. 'docker compose logs' doesn't show anything interesting though.
Steps to reproduce
- Have a dozen of memos with images and videos.
- Scroll through the history.
- Observe high RAM usage.
The version of Memos you're using
v0.22.2 and v0.22.0 acted same way
Screenshots or additional context
No response
I also had this issue when I uploaded and saved several images taken with my phone at once, and eventually the server (raspberry pi) froze. I couldn't figure out the cause, but the memory usage seemed to be quite high even before.
@vasmani hey, I've noticed that behaviour too!
@vasmani @zdebel It seems memos v0.22.x will cache files and pictures into memory, and will not release the memory (Maybe no GC?)
Maybe you can try backing up your database and updating memos to v0.24.x, v0.22.x is an outdated version that may not be maintained anymore.
Sorry I made a typo, I tried 0.24.0 and 0.24.2. I'm using the stable tag in my compose file.