Skip to content

immich-server using lots of RAM while idle #15845

@cleoold

Description

@cleoold

The bug

I did a scan for my external library (around 10K files including RAW) and waited for the jobs to complete. Thumbnails, faces, and places looked fine. The only thing I noticed was it was using 7GB of ram while sitting idle since then. I restarted the container, and mem usage was not that high. Wonder if this could be a memory leak.

Image

After restart:

Image

FYI, this is cockpit dashboard. htop tells the same data.

The OS that Immich Server is running on

Ubuntu 24.04

Version of Immich Server

v1.125.7

Version of Immich Mobile App

NA

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

Identical to https://github.com/immich-app/immich/blob/v1.125.7/docker/docker-compose.yml with external library and userns_mode: "keep-id"

Your .env content

Identical to https://github.com/immich-app/immich/blob/v1.125.7/docker/example.env

Reproduction steps

  1. run podman-compose up -d
  2. create account, add external library and scan
  3. Wait for job to complete
  4. Observe memory usage not going down
    ...

Relevant log output

Additional information

The only thing different from the default config was I ticked "Prefer embedded preview".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions