Add MemoryMax systemd option to mailman3-web service
Bug #1991163 reported by
Loïc Gomez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mailman 3 Core Charm |
Invalid
|
Undecided
|
Unassigned | ||
Mailman 3 Web Charm |
New
|
Undecided
|
Unassigned |
Bug Description
Sometimes mailman3-web service uses too much memory. There's a probable memory leak, we got up to 4.5GB while it usually takes about 300MB:
https:/
We should add a systemd override to mailman3-
[Service]
MemoryMax=1G
Restart=on-failure
Restart=on-failure is already the default, but let's add it to make sure the service gets restarted, were it to change in the future.
For this option to work, we should also update systemd configuration /etc/systemd/
DefaultMemoryAc
To post a comment you must log in.
We might also want to hardfail in case it's unable to properly restart under the limit with: valSec= 3m
[Unit]
StartLimitInter
StartLimitBurst=10
Thomas suggested we could also create a mailman systemd slice and add each service into it with limits so only those resources are affected, and have the cron job to run with systemd-run or update the charm to use systemd timers.