Project

General

Profile

Actions

Defect #44766

open

Memory leak in redmine 7.x.x + out of memory crash

Defect #44766: Memory leak in redmine 7.x.x + out of memory crash

Added by Nico Schottelius 1 day ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Performance
Target version:
-
Resolution:
Affected version:

Description

Hello,

for a few months redmine has started to crash when running with 4GB memory:

    State:          Running
      Started:      Thu, 19 Nov 2026 09:42:23 +0100
    Last State:     Terminated
      Reason:       OOMKilled
      Exit Code:    137
      Started:      Tue, 17 Nov 2026 10:28:49 +0100
      Finished:     Thu, 19 Nov 2026 09:42:22 +0100

At the moment I am running 7.0.3, but from the history it seems like the leak was introduced some time around 7.x series start. This redmine deploy is based on something a bit older than redmine 4.2.3, but has been upgraded along the years. About says:

ruby bin/about 

no username found, using 'root@redmine-ungleich-redmine-559f7499d6-tth9m' instead
sh: cvs: not found
Environment:
  Redmine version                7.0.3.stable
  Ruby version                   4.0.9-p0 (2026-10-23) [x86_64-linux-musl]
  Rails version                  8.1.4
  Environment                    production
  Database adapter               PostgreSQL
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
Redmine settings:
  Redmine theme                  Default
SCM:
  Subversion                     1.14.5
  Mercurial                      7.2.4
  Bazaar                         3.3.15
  Git                            2.54.0
  Filesystem                     
Redmine plugins:
  no plugin installed

The typical memory curve I have attached as a screenshot:

I don't see anything jumping at me in the logs, just regular requests.


Files

2026-11-19-132606_1592x262_scrot.png (30.8 KB) 2026-11-19-132606_1592x262_scrot.png Nico Schottelius, 2026-11-19 13:26

No data to display

Actions

Also available in: PDF Atom