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>
This commit is contained in:
rany 2021-01-14 12:31:45 +02:00 committed by GitHub
parent e30c523089
commit ef24ea2678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ After=network.target
After=postgresql.service After=postgresql.service
[Service] [Service]
Environment=GODEBUG=madvdontneed=1
RestartSec=2s RestartSec=2s
Type=simple Type=simple
User=dendrite User=dendrite