Project

General

Profile

Actions

Bug #33585

closed

Puma memory usage after update to 2.5

Added by Adam Winberg over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

After update from Foreman 2.4 to 2.5 (2.5.3) we have seen a dramatic increase in memory usage. From using about 5/8G of RAM before the update the machine more or less immediately after started swapping and getting OOM'd . Increasing RAM from 8 to 12G did not help, neither did changing puma threads from 0/16 to 5/5. After decreasing puma workers from 6 to 4 the memory situation looked a lot better, but usage is steadily increasing over time and after a couple of days the server started swapping again.

So, with 6 puma workers memory usage was a steady ~5G with Foreman 2.4.
With Foreman 2.5 12G RAM is not sufficient even for 4 puma workers.

Attaching graph showing memory and swap usage over time.
Update to Foreman 2.5 was at Aug 31.
RAM increase from 8 to 12G was at Sep 8.
Puma worker decrease from 6 to 4 was at Sep 24.


Files

Screenshot from 2021-09-29 14-07-16.png View Screenshot from 2021-09-29 14-07-16.png 86.2 KB Memory usage graph Adam Winberg, 09/29/2021 12:08 PM

Related issues 3 (0 open3 closed)

Related to Foreman - Bug #33640: Improve caching of SettingRegistry#load_valuesClosedJonathon TurelActions
Related to Foreman - Bug #33639: Reduce allocations in FactImporter#update_factsClosedJonathon TurelActions
Related to Foreman - Bug #34093: Authorizer cache loads all permitted resources to memoryClosedTomer BriskerActions
Actions

Also available in: Atom PDF