These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Webmin crashes due to ClamAV on the new forum.
I have a Webmin-Virtualmin installation on my Ubuntu server with 2GB memory but every so often webmin crashes and I find out that it crashed because of ClamAV (using command dmesg). It consumes too much memory. Now I don't want to disable it as it seems important to scan emails for viruses but is there an option for using less memory. I only use 30% of memory under normal load.
On this discussion - which is the same case as mine - a gentleman called andreychek suggest to change "Virus Scanning Program" option from "Standalone" to "Server Scanner". I think I saw this option back when I installed Virtualmin, in the post installation wizard but I can't find this option anywhere now. Can someone point me to its location?
In Virtualmin, Under "System Settings", "Re-run install wizard"
This takes you though a handful of options that you can tune for memory size/performance tradeoff.
Anahata www.treewind.co.uk West Yorkshire, UK
I have many websites running on the server. Is it safe to run this wizard now?
Yes, it's not the same as going in with ssh and running install.sh, which you are strongly advised not to do.
I have done it after sites were installed. I think I had Virtualmin caching its own data to make it faster while migrating many sites in, then turned that option off to release memory for normal operation. (Not that it made much of a difference in speed...)
Anahata www.treewind.co.uk West Yorkshire, UK
So I initially I ran into a problem trying to change the option. I got an error:
Could not connect to calmd on LocalSocket: Connection refused
Then I ran this command to start clamd after searching the internet and I was able to switch:
sudo /etc/init.d/clamav-daemon start
Now I'm using 70% memory (1.3GB/2GB). Will let you know if I run into trouble again. Thanks for your help.