Thanks for your response...

Mark Martinec wrote:
> Ben,
> 
>> Hello. Does anyone have any tips for getting amavis (and clamd and
>> spamassassin) to use less memory?
>>
>> Here's what it's using at the moment:
>>    PID USER        VSZ COMMAND
>>   5597 amavis   188768 clamd.amavisd -c /etc/clamd.d/amavisd.conf
>>   6744 amavis    67480 amavisd (master)
>>   7367 amavis     5732 CROND
>>   7371 amavis     2668 /bin/bash /usr/share/clamav/freshclam-sleep
>>   7375 amavis     1824 sleep 7328
> 
> What is a clamd.amavisd process?
> Are you using Mail::ClamAV av entry?

This is on Fedora, installed through yum. The clamd.amavisd script is an 
init.d script that wraps the amavisd script, setting some startup vars:

#!/bin/bash
#
# chkconfig: - 78 32
# description: The clamd server running for amavisd

CLAMD_SERVICE=amavisd
. /usr/share/clamav/clamd-wrapper

That clamd-wrapper script looks like a regular init.d script. I'm not 
sure why Fedora does it this way. I don't remember anything like this 
when I used Amavis on Gentoo.

Anyway, that clamd.amavisd is the monster process... I assumed that that 
was the main amavis process and the one's below were just the 
children... though I see that the first is labeled "master".


>>   6744 amavis    67480 amavisd (master)
>>   8105 amavis    68776 amavisd (ch5-08105-05)
>>   8126 amavis    68764 amavisd (ch2-08126-02)
> 
> 67 MB VSZ looks quite normal, perhaps even on the low side.

Ah the joys of interpreted languages. My Ruby Mongrel servers are big 
too... and leak like a sieve.

>> PS: my SA auto_whitelist file is 320M and I read somewhere that that
>> could affect memory usage. However, I restarted amavis with it renamed
>> (spamassassin created a new auto_whitelist file) and I saw no difference
>> in memory usage.
> 
> The size of a database rarely directly affects the memory used
> by a process accessing it. Perhaps you confused AWL database
> with an outdated SARE blacklisting ruleset, which was indeed
> a huge memory hog.

Cool, that's one thing ruled out. I know that really the easiest 
solution is just to put more RAM in this machine, but I'm not the one 
paying for the server. Thanks for your help.

Ben



>   Mark
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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/


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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