Hope this helps.

I'm probably on the lunatic fringe but I have my maxservers set to 50 on 
my amavisd servers and the max connections from my postfix servers set 
to 50. There are three of each type of server so the total max 
connections 150. In this configuration my average per process amavisd 
idle time is roughly 20 seconds although sometimes it creeps down to 8 
seconds. The average processing time is around 6 seconds. The servers 
are overkill (dual CPU 1.2GHz ultra Sparc III's with 8GB of Memory) but 
they do the job nicely.

This was done to avoid the postfix-amavisd connections from being the 
bottleneck.  There are other bottlenecks, but at least this isn't one of 
them. Before this configuration, the max servers was set at 20 but the 
max outgoing connection was set from postfix was set at 7. Cranking up 
the postfix was the major trick.

Although it isn't supposed to help if you have more than 20 servers, it 
doesn't hurt as long as you have enough memory and more than one CPU. I 
like to keep the idle time of the amavisd processes relatively high so 
that I can deal with traffic such as public events sending its weekly 
e-mail to the entire campus.

Hope that helps.

---Jack

Mark Martinec wrote:
> 
>> I have had my $max_servers anywhere from 4 to 20 with this behavior.
>> Is there perhaps something I should change with max_requests to help this
>> out?   It seems to me like some of the amavisd threads just "go to sleep"
>> and thus shutting them down/restarting is all that helps.  So maybe I
>> should actually be "decreasing" the max_requests to make them restart more
>> often?
> 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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