> Timo wrote:

>> Hello amavis users,
>>
>> I have noticed a huge amount of swap usage (around 150 MB with 512 MB of
>> physical RAM). So now I am trying to save memory as much as possible. I
>> reduced $max_servers to 1 in amavisd.conf as supposed in the
>> README.performance file. After a restart of amavisd-new swap usage went
>> down under 100 MB.
>>
>> Besides the daemons that I need for mail, the machine runs bind, apache
>> and mysql. I also limited memory usage for those programs as good as I
>> can. This brought me down to around 20 MB in swap.
>>
>> The problem is, that over time I still get over 100 MB swap usage.
>> Obviously amavisd-new is to blame because when I just do a restart of it,
>> I get down to the 20 MB swap.

I believe the same would happen if you restarted other (large) programs too.

>>
>> What I also noticed is, that there are 2 amavisd-new processes after my
>> max_servers reduction (from above). Can I run amavisd-new with
>> $max_servers = 0? Which other measures do you know to limit or to save
>> memory

One process is the master process that spawns children, as far as I
know you need at least one child process to scan mail.

>>
>> I am using amavisd-new-20030616p10-5 with spamassassin-3.0.3-1 and
>> clamav-0.85.1-2 connected to exim-3.35-1 on a Debian woody. (I know that
>> these are very old versions)
>>
>> TIA
>> Timo

Off topic:
As you may know clamav 0.85 may not offer protection from newer
viruses, but I understand that this is the newest version from
backports.org, and it may not be possible to upgrade to the current
version due to woody being unable to meet dependencies required by
new versions of libz1g and libc6. Hopefully the spamassassin version
you are using includes a patch for a known DOS vulnerability in 3.0.3.
It looks like 3.0.4-1woody1 is available from backports.

Gary V



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to