Zammad High Memory Utilization - Puma & Background Worker ruby

Infos:

  • Used Zammad version: latest
  • Used Zammad installation type: (source, package, docker-compose, …)
  • Operating system: ubuntu 24.04
  • Browser + version: all

Number of CPU: 4 Core
Memory: 8 GB RAM

We are facing high memory utlization by zammad_scheduler docker container due to high memory utilization by below processes since we have restricted to elasticsearch to use only 1 GB of RAM

List of Processes - High Memory Usage:
1 ) ubuntu 1663 33.3 30.9 3347792 2451044 ? Ssl 05:27 7:54 puma 6.4.3 (tcp://[::]:3000) [zammad]

Total 31 threads running for the above process

2 ) ubuntu 1638 34.0 27.9 3920212 2212040 ? Ssl 05:27 8:08 script/background-worker.rb start

Total 24 threads running for the above process

Error Log - after 2 days
{“log”:“E, [2025-03-28T10:21:57.681648#1-183820] ERROR – : 2025-03-28T10:21:57+0530: [Worker(host:6b9d13e2a441 pid:1)] Job TransactionJob [fdafe469-f3fa-4127-9c33-70bfa02abe12] from DelayedJob(default) with arguments: [{"object"=\u003e"Ticket", "object_id"=\u003e503, "user_id"=\u003e67, "created_at"=\u003e{"_aj_serialized"=\u003e"ActiveJob::Serializers::TimeWithZoneSerializer", "value"=\u003e"2025-03-25T04:15:12.029885761Z", "time_zone"=\u003e"Etc/UTC"}, "type"=\u003e"update", "article_id"=\u003e56124, "article"=\u003e{"_aj_globalid"=\u003e"gid://zammad/Ticket::Article/56124"}, "_aj_symbol_keys"=\u003e["object", "object_id", "user_id", "created_at", "type", "article_id", "article"]}, {"interface_handle"=\u003e"application_server", "_aj_symbol_keys"=\u003e["interface_handle"]}] (id=276173) (queue=default) FAILED (0 prior attempts) with ThreadError: can’t alloc thread\n”,“stream”:“stdout”,“time”:“2025-03-28T04:51:57.681732397Z”}

Please guide me through this to resolve it.

Note

  1. Currently we have total of 2500 tickets
  2. Total 85 users with only 15 to 25 users will max use at the same time.

Also, the ticket numbering we kept is starting from 2100 but after 1000 tickets the ticket number assigned is 211646 [ for example ]

Thanks,

Expected behavior:

Actual behavior:

Steps to reproduce the behavior: