From a07e25560e630f77568818154d6d0da1f64d5be2 Mon Sep 17 00:00:00 2001 From: rany Date: Fri, 8 Jan 2021 11:35:16 +0200 Subject: [PATCH] Add madvdontneed=1 to decrease RAM consumption for systemd service --- docs/systemd/monolith-example.service | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/systemd/monolith-example.service b/docs/systemd/monolith-example.service index 7dd7755db..1c941cfda 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