Skip to content

Immich is running out of memory while creating thumbnails (runaway memory) #22515

@parth017

Description

@parth017

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

While attempting to generate thumbnails for approximately 45,000 images stored on the server, the immich server repeatedly encounters memory shortages and restarts with the same issue again and again. Seems like the garbage collection is not working in the jobs as it should so memory usage keeps increasing until hitting max.

Image

The OS that Immich Server is running on

Debian 12

Version of Immich Server

v1.144.1

Version of Immich Mobile App

v1.144.1

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

No response

Your docker-compose.yml content

not relevant, same as docker-compose from repo

Your .env content

not relevant

Reproduction steps

  1. With bigger library, go to Jobs
  2. Generate Thumbnails jobs >> All
  3. Observer the server memory usage and restart behavior.

Relevant log output

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions