Page 1 of 1
very high load after installing
Posted: 12 Feb 2010, 14:27
by minadreapta
after installing mailscanner i get very high loads like 30 and 40.
i get processes like /usr/local/bin/clamscan --tempdir=/tmp/clamav.1524 -r --no-summary --stdout eating out 100% processor.
the process owner is mailnull.
can someone help me with this one? why is it even eating so much resources?
i have constant load of 20 and 30 for the last 4-5 hours. and the mail queue is almost empty...
Posted: 18 Feb 2010, 12:28
by Edward
Hey - what setting do you have for:
Virus Scanners =
In your MailScanner.conf? Sounds like you're got 'clamav'. This is the slowest way to scan messages - you'll probably want to switch to 'clamavmodule' so long as you have the required perl module installed (run MailScanner -v to check).
We use clamd and find this to be the best use of resources, but we do use a watcher script to restart clamd if it looks like it's crashed.
I'm not allowed to post URLs to other sites, but if you google for "MailScanner most asked questions", click the link and scroll down to "Optimization Tips" you'll find lots of other good advice.
-Edward
Posted: 25 Feb 2010, 16:16
by Sarah
Make sure you're not running out of disk space on the /tmp/ partition, and make sure you're using clamd as the virus scanner rather than clamav. Using clamavmodule is OK, but sometimes when clamav is upgraded it takes a while for clamavmodule to be updated, and meanwhile you're stuffed. Also try restarting clamd.
Posted: 28 Feb 2010, 17:49
by minadreapta
it seems i was using clamav and this was a problem.
i switched to clamd and everything looks good so far, i will keep monitoring.
thanks guys.
Posted: 03 Mar 2010, 21:57
by minadreapta
Edward wrote:
We use clamd and find this to be the best use of resources, but we do use a watcher script to restart clamd if it looks like it's crashed.
can you share the watcher script Edward ? thanks.
Posted: 22 May 2010, 15:39
by csfan
Sarah wrote:Make sure you're not running out of disk space on the /tmp/ partition, and make sure you're using clamd as the virus scanner rather than clamav. Using clamavmodule is OK, but sometimes when clamav is upgraded it takes a while for clamavmodule to be updated, and meanwhile you're stuffed. Also try restarting clamd.
What I can't understand is, Cpanel Service Manager has both the clamd and clamav options to enable and restart. The clamav option is under mailscanner. Which one should be ticked? I run clamd and have Virus Scanners = clamd in mailscanner config file.
Posted: 22 May 2010, 17:50
by Sarah
csfan wrote:What I can't understand is, Cpanel Service Manager has both the clamd and clamav options to enable and restart. The clamav option is under mailscanner. Which one should be ticked? I run clamd and have Virus Scanners = clamd in mailscanner config file.
In Service Manager only the clamav under Additional Services should be enabled. The clamd at the top should be disabled.
Regards,
Sarah
Posted: 22 May 2010, 17:57
by csfan
Sarah wrote:In Service Manager only the clamav under Additional Services should be enabled. The clamd at the top should be disabled.
Regards,
Sarah
Thank you.