hello Debian group
here iam running Debian 10.13, clamav 0.103.7+dfsg-0+deb10u1
but it's this possible that clamav-daemon use 1.2G memory?
try to punish little without getting any negative effects.
try to enclose, but after 4-5h the mailserver will freez/break
>[Service]
>ExecStart=/usr/sbin/clamd --foreground=true
>Reload the database
>MemoryLimit=128M
>CPUQuota=25
/etc# systemctl status clamav-daemon
● 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 Mon 2023-02-13 14:47:46 CET; 13min ago
Docs: man:clamd(8)
man:clamd.conf(5)
Process: 31948 ExecStartPre=/bin/mkdir -p /run/clamav (code=exited, status=0/SUCCESS)
Process: 31949 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
Process: 31950 ExecStartPre=/bin/touch /var/run/clamav/clamd.ctl (code=exited, status=0/SUCCESS)
Process: 31951 ExecStartPre=/bin/chown clamav /var/run/clamav/clamd.ctl (code=exited, status=0/SUCCESS)
Main PID: 31952 (clamd)
Tasks: 2 (limit: 2358)
Memory: 1.2G
thanks for any possible update
hello Debian group
here iam running Debian 10.13, clamav 0.103.7+dfsg-0+deb10u1
but it's this possible that clamav-daemon use 1.2G memory?
Entirely possible. As I recall, clamav-daemon caches the virus definitions in RAM in order to minimise startup speed when handling clients.
In other words, if you're only scanning for viruses occasionally
(e.g. mails which have an attachment), you might find switching
from "clamdscan" to "clamscan" and not running the daemon suits
your purpose.
try to punish little without getting any negative effects.
try to enclose, but after 4-5h the mailserver will freez/break
Depending on your system architecture, you could consider running
"clamdaemon" on a different host, and configuring "clamdscan" to
use a TCP socket. This is particularly beneficial if you have
several hosts which need to perform scanning as they can all pass
their payload to the central scanning host, and you don't need
multiple instances of the daemon.
YMMV.
>>Entirely possible. As I recall, clamav-daemon caches the virus definitions in RAM in order to minimise startup speed when handling clients.
>>In other words, if you're only scanning for viruses occasionally (e.g. mails which have an attachment), you might find switching from "clamdscan" to >>"clamscan" and not running the daemon suits your purpose.
>>Depending on your system architecture, you could consider running "clamdaemon" on a different host, and configuring "clamdscan" to use a TCP socket. >>This is particularly beneficial if you have several hosts which need to perform scanning as they can all pass their payload to the central scanning host, and >>you don't need multiple instances of the daemon.
>>YMMV.
--
>Thanks for your answer, this machine are running as VPS, so this Server dont have a lot of memory configured, and running as standalone machine.
>Yes i will try to switch to clamscan, but you know this will impact the E-Mail ScannSpeed or transferspeed?
>
>Amavis are also like clamd ?, a hungry memory maintainer
>Thanks for your update
>Mauri