From ef24ea26784a025d6c59d688a66859b51a0f1166 Mon Sep 17 00:00:00 2001 From: rany Date: Thu, 14 Jan 2021 12:31:45 +0200 Subject: [PATCH] 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 --- 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 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