Hi!
Has anyone of you made any modifications to the resend code to monitor the
amount of running processes in a system and exiting if the number exceeds a
certain threshold?
The reason I'm asking this is because our system is hosting several large
international mailing lists and I installed the bulk_mailer to speed up the
delivery process. The trade-off seemed to be that sometimes when several
messages come in simultaneously or within tens of seconds, the amount of
sendmail processes went up and we occasionally got some 'filetable overflow'
errors.
I added the following lines in the beginning of the resend code:
$max_processes = 130;
$processes = `/bin/ps -xa|/usr/bin/wc -l`;
exit 75 if ($processes >= $max_processes);
Does anyone find any reason why this wouldn't be the best solution for the
problem? Any comments on the topic?
Marko Hotti <mhotti@lists.oulu.fi>
--
Marko Hotti [] Oulu University CSC - List Services
Systems Administrator [] Tervontie 4 C 11, FIN-90230 OULU
mhotti@lists.oulu.fi [] Tel: +358-(0)40-552-8415 (work)
http://www.lists.oulu.fi/ [] +358-(0)8 -530-4268 (home)
Follow-Ups:
|
|