Thanks for putting me on the right track.
After a bit of searching arround, it turns out it loads the virus-database in memory to make scanning faster.
For me this is not needed.
After I added:
ConcurrentDatabaseReload no in /etc/clamav/clamd.conf
It didn't overload the server anymore, well so far, have to watch it a few hours.
But it looks promissing.
Edit: That didn't work either, it ate all memory to a stopping point when scanning directories.
Have to look further.
Edit2, changed the default scanning databases to just limited for virus and malware-scanning
Code: Select all
https://ftp.swin.edu.au/sanesecurity/phish.ndb
https://ftp.swin.edu.au/sanesecurity/rogue.hdb
https://ftp.swin.edu.au/sanesecurity/sanesecurity.ftm
https://ftp.swin.edu.au/sanesecurity/sigwhitelist.ign2
https://ftp.swin.edu.au/sanesecurity/spamattach.hdb
https://ftp.swin.edu.au/sanesecurity/foxhole_generic.cdb
https://ftp.swin.edu.au/sanesecurity/foxhole_filename.cdb
https://ftp.swin.edu.au/sanesecurity/malwarehash.hsb
https://ftp.swin.edu.au/sanesecurity/hackingteam.hsb
https://ftp.swin.edu.au/sanesecurity/winnow_malware.hdb
https://ftp.swin.edu.au/sanesecurity/winnow_malware_links.ndb
https://ftp.swin.edu.au/sanesecurity/winnow_extended_malware.hdb
https://ftp.swin.edu.au/sanesecurity/winnow.attachments.hdb
https://ftp.swin.edu.au/sanesecurity/winnow_bad_cw.hdb
https://ftp.swin.edu.au/sanesecurity/bofhland_cracked_URL.ndb
https://ftp.swin.edu.au/sanesecurity/bofhland_malware_URL.ndb
https://ftp.swin.edu.au/sanesecurity/bofhland_phishing_URL.ndb
https://ftp.swin.edu.au/sanesecurity/bofhland_malware_attach.hdb
I removed all others and used the first settings as well.
Then started scanning again, it didn't not use 1.3GB memory as before but ~500MB, it didn't slowdown the server so far and the panel as well as email where responsive.
Looks to me one of the default-config-databases is simply too huge to be run in a 2GB system.
Going to let it run again for a bit, and see what happens.
Greetings Bas.
Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.