Webmin crashes due to ClamAV

5 posts / 0 new
Last post
#1 Sat, 07/27/2019 - 02:18
Vipul.K

Webmin crashes due to ClamAV

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?

Sun, 07/28/2019 - 06:10
anahata
anahata's picture

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

Sun, 07/28/2019 - 06:27
Vipul.K

I have many websites running on the server. Is it safe to run this wizard now?

Sun, 07/28/2019 - 06:33
anahata
anahata's picture

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

Sun, 07/28/2019 - 07:21
Vipul.K

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.

Topic locked