optimizing memory consumption

Benny Pedersen me at junc.eu
Sun Nov 4 16:17:04 CET 2018


Matus UHLAR - fantomas skrev den 2018-11-04 15:32:
> On 02.11.18 18:29, Imre Rad wrote:
>> Is there a known way to decrease the memory consumption of the Amavisd
>> processes? ~110 MB/process for Resident Set Size is suboptimal, I 
>> think.
> 
> you can limit $max_requests so any possible emory botleneck will cure 
> in a
> while.

depends on how mta glue is done

> reducing $sa_mail_body_size_limit could help too.

avoid to help spammers sending big mails to disable scanning

> However, do you encounter any problems? Or are you just trying to lower
> memory consumption?

i have to solve "cd to-maildir+ && ls >/tmp/tempfile && sa-learn --spam 
--progress -f /tmp/tempfile" will also with 1 million mails in maildir 
end in out of memory

have not yet found a way to make it work


More information about the amavis-users mailing list