With the following combinaison of parms, it seems to work better :)

root@minipc:/lib/systemd/system# cat clamav-daemon.service               
[Unit]
Description=Clam AntiVirus userspace daemon
Documentation=man:clamd(8) man:clamd.conf(5) https://www.clamav.net/documents/
# Check for database existence
ConditionPathExistsGlob=/var/lib/clamav/main.{c[vl]d,inc}
ConditionPathExistsGlob=/var/lib/clamav/daily.{c[vl]d,inc}

[Service]
ExecStart=/usr/sbin/clamd --foreground=true
# Reload the database
ExecReload=/bin/kill -USR2 $MAINPID
StandardOutput=journal
TimeoutStartSec=420
MemoryHigh=256M
MemoryMax=512M

[Install]
WantedBy=multi-user.target
root@minipc:/lib/systemd/system# 



root@minipc:/lib/systemd/system# 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 20:05:13 CET; 2min 16s ago
       Docs: man:clamd(8)
             man:clamd.conf(5)
             https://www.clamav.net/documents/
    Process: 3652938 ExecStartPre=/bin/mkdir -p /run/clamav (code=exited, 
status=0/SUCCESS)
    Process: 3652940 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, 
status=0/SUCCESS)
   Main PID: 3652954 (clamd)
      Tasks: 2 (limit: 18754)
     Memory: 511.9M (high: 256.0M max: 512.0M)
     CGroup: /system.slice/clamav-daemon.service
             └─3652954 /usr/sbin/clamd --foreground=true

déc. 09 20:06:02 minipc clamd[3652954]: Wed Dec  9 20:06:02 2020 -> Portable 
Executable support enabled.
déc. 09 20:06:02 minipc clamd[3652954]: Wed Dec  9 20:06:02 2020 -> ELF support 
enabled.
déc. 09 20:06:02 minipc clamd[3652954]: Wed Dec  9 20:06:02 2020 -> Mail files 
support enabled.
déc. 09 20:06:02 minipc clamd[3652954]: Wed Dec  9 20:06:02 2020 -> OLE2 
support enabled.
déc. 09 20:06:02 minipc clamd[3652954]: Wed Dec  9 20:06:02 2020 -> PDF support 
enabled.
déc. 09 20:06:02 minipc clamd[3652954]: Wed Dec  9 20:06:02 2020 -> SWF support 
enabled.
déc. 09 20:06:02 minipc clamd[3652954]: Wed Dec  9 20:06:02 2020 -> HTML 
support enabled.
déc. 09 20:06:02 minipc clamd[3652954]: Wed Dec  9 20:06:02 2020 -> XMLDOCS 
support enabled.
déc. 09 20:06:02 minipc clamd[3652954]: Wed Dec  9 20:06:02 2020 -> HWP3 
support enabled.
déc. 09 20:06:02 minipc clamd[3652954]: Wed Dec  9 20:06:02 2020 -> Self 
checking every 3600 seconds.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907312

Title:
  clamd takes 7% of ram

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/1907312/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to