Ron Culler
2006-03-02 23:26:07 UTC
After upgrading to 3.1 from 3.0 we are starting to see the following
error messages in our logs "prefork: server reached --max-clients
setting, consider raising it"
I have looked through the list archives and tried the suggestions that I
have found. (adjusting the max children numbers) But still no luck.
Here is our config:
3 inbound qmail servers doing rbl look-ups to block spam
They deliver to 6 qmail servers running qmail-scanner with spamc support
enabled. Those 6 servers look up against 4 spamd servers for scoring.
All the scanners and spamd boxes are P4 3.2GB 1M cache machines with 2GB
of ram. The spamd servers have a second disk for the bayes db file.
( haven't moved to SQL bayes yet) We are using Mysql for per user
actually per domain white\black list and default score options.
The inbound servers deliver via a dns round robin lookup to one of the 6
scanners. They in turn do the same dns round robin lookup to a spamd
server for scoring.
Spamd startup options - "-d -q -m 50 -x --
siteconfigpath=/etc/mail/spamassassin -i xxx.xxx.xxx.xxx -A xxx.xxx.xxx.
-u spamd"
Spamd servers are also running a caching dns server as well.
localdb.cf contents
required_hits 5.0
report_safe 0
use_bayes 1
lock_method flock
use_auto_whitelist 0
bayes_path /home/spamd/.spamassassin/bayes
bayes_auto_expire 1
skip_rbl_checks 1
loadplugin Mail::SpamAssassin::Plugin::Razor2
loadplugin Mail::SpamAssassin::Plugin::DCC
loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold
# TextCat - language guesser
#
loadplugin Mail::SpamAssassin::Plugin::TextCat
# WhitelistSubject - Whitelist/Blacklist certain subject regular
expressions
#
loadplugin Mail::SpamAssassin::Plugin::WhiteListSubject
ok_languages all
ok_locales en
user_scores_dsn DBI:mysql:spamassassin:xxx.xxx.xxx.xxx
user_scores_sql_username username
user_scores_sql_password password
bayes_ignore_header X-Habeas-SWE-1
bayes_ignore_header X-Habeas-SWE-2
bayes_ignore_header X-Habeas-SWE-3
bayes_ignore_header X-Habeas-SWE-4
bayes_ignore_header X-Habeas-SWE-5
bayes_ignore_header X-Habeas-SWE-6
bayes_ignore_header X-Habeas-SWE-7
bayes_ignore_header X-Habeas-SWE-8
bayes_ignore_header X-Habeas-SWE-9
Spamc switches - "-c -s 200000 -d round-robin hostname -u domainname"
We average between 50k to 75k messages scanned per day via this
system.
I was wanting to find out if there are any additional things that can be
done to better tune the spamassassin performance and get rid of these
messages. We normally see that message when a large burst of mail is
transmitted. Is there anything that can be done to either spamd/spamc or
both that would handle this better?
Thanks
error messages in our logs "prefork: server reached --max-clients
setting, consider raising it"
I have looked through the list archives and tried the suggestions that I
have found. (adjusting the max children numbers) But still no luck.
Here is our config:
3 inbound qmail servers doing rbl look-ups to block spam
They deliver to 6 qmail servers running qmail-scanner with spamc support
enabled. Those 6 servers look up against 4 spamd servers for scoring.
All the scanners and spamd boxes are P4 3.2GB 1M cache machines with 2GB
of ram. The spamd servers have a second disk for the bayes db file.
( haven't moved to SQL bayes yet) We are using Mysql for per user
actually per domain white\black list and default score options.
The inbound servers deliver via a dns round robin lookup to one of the 6
scanners. They in turn do the same dns round robin lookup to a spamd
server for scoring.
Spamd startup options - "-d -q -m 50 -x --
siteconfigpath=/etc/mail/spamassassin -i xxx.xxx.xxx.xxx -A xxx.xxx.xxx.
-u spamd"
Spamd servers are also running a caching dns server as well.
localdb.cf contents
required_hits 5.0
report_safe 0
use_bayes 1
lock_method flock
use_auto_whitelist 0
bayes_path /home/spamd/.spamassassin/bayes
bayes_auto_expire 1
skip_rbl_checks 1
loadplugin Mail::SpamAssassin::Plugin::Razor2
loadplugin Mail::SpamAssassin::Plugin::DCC
loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold
# TextCat - language guesser
#
loadplugin Mail::SpamAssassin::Plugin::TextCat
# WhitelistSubject - Whitelist/Blacklist certain subject regular
expressions
#
loadplugin Mail::SpamAssassin::Plugin::WhiteListSubject
ok_languages all
ok_locales en
user_scores_dsn DBI:mysql:spamassassin:xxx.xxx.xxx.xxx
user_scores_sql_username username
user_scores_sql_password password
bayes_ignore_header X-Habeas-SWE-1
bayes_ignore_header X-Habeas-SWE-2
bayes_ignore_header X-Habeas-SWE-3
bayes_ignore_header X-Habeas-SWE-4
bayes_ignore_header X-Habeas-SWE-5
bayes_ignore_header X-Habeas-SWE-6
bayes_ignore_header X-Habeas-SWE-7
bayes_ignore_header X-Habeas-SWE-8
bayes_ignore_header X-Habeas-SWE-9
Spamc switches - "-c -s 200000 -d round-robin hostname -u domainname"
We average between 50k to 75k messages scanned per day via this
system.
I was wanting to find out if there are any additional things that can be
done to better tune the spamassassin performance and get rid of these
messages. We normally see that message when a large burst of mail is
transmitted. Is there anything that can be done to either spamd/spamc or
both that would handle this better?
Thanks
--
Ron Culler
Ron Culler