Comment 12 for bug 1907312

Revision history for this message
P (p92) wrote :

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.