diff options
author | rany <ranygh@riseup.net> | 2021-01-14 12:31:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-14 10:31:45 +0000 |
commit | ef24ea26784a025d6c59d688a66859b51a0f1166 (patch) | |
tree | 8043c20ffa323d09edb7edded7e7d0296e950c7b | |
parent | e30c52308963a9807ddd7fbd86204deb02d22bd0 (diff) |
Add madvdontneed=1 to decrease RAM consumption for systemd service (#1690)
* Add madvdontneed=1 to decrease RAM consumption for systemd service
* Update monolith-example.service
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
-rw-r--r-- | docs/systemd/monolith-example.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/systemd/monolith-example.service b/docs/systemd/monolith-example.service index 7dd7755d..731c6159 100644 --- a/docs/systemd/monolith-example.service +++ b/docs/systemd/monolith-example.service @@ -5,6 +5,7 @@ After=network.target After=postgresql.service [Service] +Environment=GODEBUG=madvdontneed=1 RestartSec=2s Type=simple User=dendrite |