memos icon indicating copy to clipboard operation
memos copied to clipboard

Big RAM usage

Open zdebel opened this issue 8 months ago • 4 comments

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

  1. Have a dozen of memos with images and videos.
  2. Scroll through the history.
  3. 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

zdebel avatar Apr 30 '25 08:04 zdebel

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 avatar May 05 '25 03:05 vasmani

@vasmani hey, I've noticed that behaviour too!

zdebel avatar May 06 '25 09:05 zdebel

@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.

Sung-Kim0430 avatar May 12 '25 11:05 Sung-Kim0430

Sorry I made a typo, I tried 0.24.0 and 0.24.2. I'm using the stable tag in my compose file.

zdebel avatar May 12 '25 12:05 zdebel