I've started the unit with MemoryHigh=512M because MemoryLimit would kill the process
I see that systemd has accepted the parameter, but the process still takes 1.1G : Memory: 1.1G (high: 512.0M)
as seen in the status report :
# systemctl status clamav-daemon.service ● clamav-daemon.service - Clam AntiVirus userspace daemon Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/clamav-daemon.service.d └─extend.conf Active: active (running) since Wed 2020-12-09 19:47:06 CET; 1min 9s ago Docs: man:clamd(8) man:clamd.conf(5) https://www.clamav.net/documents/ Process: 3650667 ExecStartPre=/bin/mkdir -p /run/clamav (code=exited, status=0/SUCCESS) Process: 3650676 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS) Main PID: 3650686 (clamd) Tasks: 2 (limit: 18754) Memory: 1.1G (high: 512.0M) CGroup: /system.slice/clamav-daemon.service └─3650686 /usr/sbin/clamd --foreground=true
déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> Portable Executable support enabled. déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> ELF support enabled. déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> Mail files support enabled. déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> OLE2 support enabled. déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> PDF support enabled. déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> SWF support enabled. déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> HTML support enabled. déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> XMLDOCS support enabled. déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> HWP3 support enabled. déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> Self checking every 3600 seconds.
I've started the unit with MemoryHigh=512M because MemoryLimit would kill the process
I see that systemd has accepted the parameter, but the process still takes 1.1G :
Memory: 1.1G (high: 512.0M)
as seen in the status report :
# systemctl status clamav- daemon. service daemon. service - Clam AntiVirus userspace daemon system/ clamav- daemon. service; enabled; vendor preset: enabled) system/ clamav- daemon. service. d
└ ─extend. conf
man: clamd.conf( 5) /www.clamav. net/documents/ /bin/mkdir -p /run/clamav (code=exited, status=0/SUCCESS) /bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS) slice/clamav- daemon. service
└ ─3650686 /usr/sbin/clamd --foreground=true
● clamav-
Loaded: loaded (/lib/systemd/
Drop-In: /etc/systemd/
Active: active (running) since Wed 2020-12-09 19:47:06 CET; 1min 9s ago
Docs: man:clamd(8)
https:/
Process: 3650667 ExecStartPre=
Process: 3650676 ExecStartPre=
Main PID: 3650686 (clamd)
Tasks: 2 (limit: 18754)
Memory: 1.1G (high: 512.0M)
CGroup: /system.
déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> Portable Executable support enabled.
déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> ELF support enabled.
déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> Mail files support enabled.
déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> OLE2 support enabled.
déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> PDF support enabled.
déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> SWF support enabled.
déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> HTML support enabled.
déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> XMLDOCS support enabled.
déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> HWP3 support enabled.
déc. 09 19:47:28 minipc clamd[3650686]: Wed Dec 9 19:47:28 2020 -> Self checking every 3600 seconds.