High Load problems

Noel Jones via amavis-users amavis-users at amavis.org
Thu Feb 27 19:58:59 CET 2014

On 2/27/2014 11:35 AM, Nikolaos Milas via amavis-users wrote:
> Hi,
> It has been running smoothly for more than a year, but since
> yesterday (we have not changed anything on the server), amavisd,
> when called, is using too much CPU and seems to be delaying the

> ============================= amavisd.conf
> ====================================
> $max_servers = 2;            # num of pre-forked children (2..30 is
> common), -m

You're using 2 amavisd-new processes.  How many cores, how much RAM
does this server have?

Note that amavisd will often use high CPU when it's processing a lot
of mail.  Just the fact that a lot of CPU is being used is not in
itself a problem, the trouble is that more mail is coming in than is
being processed.

> @av_scanners_backup = (
>   ### http://www.clamav.net/   - backs up clamd or Mail::ClamAV
>   ['ClamAV-clamscan', 'clamscan',
>     "--stdout --no-summary -r --tempdir=$TEMPBASE {}",
>     [0], qr/:.*\sFOUND$/m, qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],

Make sure that amavisd is really using clamd and not clamscan.
Using clamscan on incoming mail is so slow it's probably best to
comment out this section and let mail fail if clamd isn't available.
Or uncomment the "always clean" backup scanner to pass mail
unscanned when clamd isn't working.

  -- Noel Jones

More information about the amavis-users mailing list