Defect #34497
closedHigh memory usage in Redmine 4.0.5.stable
0%
Description
Hi Team,
We are getting high memory usage in Redmine, we have been using redmine (same version ) for last 1 year or more.But we didn't face this issue untill 2 weeks before, For the last two weeks , we are seeing high memory usage in Redmine.
Environment:
Redmine version 4.0.5.stable
Ruby version 2.5.1-p57 (2018-03-29) [x86_64-linux-gnu]
Rails version 5.2.3
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
It would be nice if you can provide some information to debug this issue.
Updated by Holger Just almost 4 years ago
- Status changed from New to Needs feedback
"high" is a rather subjective designation. Without specific numbers, it is impossible to verify this nor is it possible to tell you whether your numbers might be normal.
With that being said, it is quite normal to see a single application process of an application server such as unicorn or passenger to use between 256 and 512 MB. Depending on your workload, this might temporarily spike to more than 1 GB per process (e.g. if you have large issues or issue trees, make "expensive" queries, ...
Depending on how you have configured application caches, those might also affect memory usage (by default, Redmine uses an in-memory cache).
To restrict the amount of memory used by your application server, you might use options such as PassengerMemoryLimit for passenger or the Unicorn::WorkerKiller when using unicorn (or an equivalent option of your chosen application server).