You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by WrackWeb - Jean Respen <j....@wrackweb.net> on 2006/07/25 16:13:36 UTC

High load on my server

Hello,

I've some troubles with spamassassin. Sometimes (and i don't know why
exactly) my server has high load (like 50 or 60 or more) so it's
impossible to connect via ssh, everything crash (apache, qmail, vpopmail,
etc...) and i have to go to the datacenter to reboot the server... and if
i'm able to connect via ssh (after having waited 40 minutes...) i can see
that perl or spamd are the processes which take the most part of the load
(perl due to qmailscanner, who invoke spamassassin). I'm under a debian
stable, i've installed spamassassin via package AND source... maybe it's
because of this

In my syslog i've this just before it crashed :

Jul 24 15:49:07 localhost spamd[16465]: spamd: result: . 1 -
BAYES_00,SPF_HELO_SOFTFAIL,SPF_SOFTFAIL
scantime=1169.8,size=4834,user=qscand,uid
=0,required_score=5.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=44964,mid=<84...@5RW9G>,bayes=0,autolearn=no
Jul 24 15:49:27 localhost imapd: DISCONNECTED, user=hebergement,
ip=[::ffff:83.79.3.207], headers=398, body=99132, time=62494
Jul 24 15:55:47 localhost spamd[29579]: prefork: child states:
BBBBBBBBBBBBBBBBBBBBBBBBBKBBBBBBBB
Jul 24 16:03:18 localhost spamd[11444]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:03:26 localhost spamd[26988]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:03:26 localhost spamd[13722]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:03:26 localhost imapd: Connection, ip=[::ffff:83.79.3.207]
Jul 24 16:03:26 localhost spamd[27949]: spamd: copy_config timeout,
respawning c
hild process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:03:26 localhost spamd[23170]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:03:26 localhost spamd[8289]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:03:26 localhost spamd[28895]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:03:26 localhost spamd[29579]: spamd: server successfully spawned
child process, pid 24737
Jul 24 16:03:26 localhost spamd[18833]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:03:39 localhost spamd[16465]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:03:46 localhost spamd[23836]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:03:54 localhost spamd[6034]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:14:00 localhost spamd[25521]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:14:15 localhost spamd[18479]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:14:15 localhost spamd[8664]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:14:15 localhost spamd[30786]: spamd: clean message (1.2/5.0) for
qscand:0 in 1278.0 seconds, 4834 bytes.
Jul 24 16:14:15 localhost spamd[3080]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:14:15 localhost spamd[17736]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:14:15 localhost spamd[8898]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:14:15 localhost spamd[29057]: spamd: clean message (3.1/5.0) for
qscand:0 in 1337.4 seconds, 4795 bytes.
Jul 24 16:14:15 localhost spamd[1300]: spamd: copy_config timeout,
respawning child process after 171 messages at /usr/bin/spamd line 969.
Jul 24 16:14:15 localhost spamd[406]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:14:15 localhost spamd[1388]: spamd: clean message (1.2/5.0) for
qscand:0 in 1352.6 seconds, 4783 bytes.
Jul 24 16:14:15 localhost spamd[11075]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:14:15 localhost spamd[10859]: spamd: clean message (0.2/5.0) for
qscand:0 in 1355.1 seconds, 4786 bytes.
Jul 24 16:14:15 localhost spamd[28863]: spamd: clean message (0.2/5.0) for
qscand:0 in 1357.9 seconds, 4786 bytes.
Jul 24 16:15:35 localhost /USR/SBIN/CRON[26547]: (root) CMD (/usr/bin/mrtg
/etc/qmail.mrtg.cfg > /dev/null)
Jul 24 16:15:47 localhost imapd: Connection, ip=[::ffff:83.79.3.207]
Jul 24 16:15:49 localhost spamd[13467]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 24 16:15:49 localhost spamd[14508]: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 969.
Jul 25 15:07:43 localhost syslogd 1.4.1#17: restart.

Has anyone got an idea?

Thanks,


-- 
Jean "Wrack" Respen
j.respen@wrackweb.net
http://www.wrackweb.net

Blocking From Users

Posted by Brent Kennedy <br...@cfl.rr.com>.
Just a quick question.  If I add an entry into the configuration file to
block all emails sent from "*@mycompaniesdomain.com", that should block
anyone trying to send emails into my mail server using my companies domain
as a spoof.  The question is.. Will this end up quarantining all emails sent
to mycompaniesdomain.com?

I am only using SA to filter incoming emails.

Thanks

-Brent



Re: High load on my server

Posted by "Daryl C. W. O'Shea" <sp...@dostech.ca>.
WrackWeb - Jean Respen wrote:
> Hello,
> 
> I've some troubles with spamassassin. Sometimes (and i don't know why
> exactly) my server has high load (like 50 or 60 or more) so it's
> impossible to connect via ssh, everything crash (apache, qmail, vpopmail,
> etc...) and i have to go to the datacenter to reboot the server... and if
> i'm able to connect via ssh (after having waited 40 minutes...) i can see
> that perl or spamd are the processes which take the most part of the load
> (perl due to qmailscanner, who invoke spamassassin). I'm under a debian
> stable, i've installed spamassassin via package AND source... maybe it's
> because of this
> 
> In my syslog i've this just before it crashed :
> 
> Jul 24 15:49:07 localhost spamd[16465]: spamd: result: . 1 -
> BAYES_00,SPF_HELO_SOFTFAIL,SPF_SOFTFAIL
> scantime=1169.8,size=4834,user=qscand,uid
> =0,required_score=5.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=44964,mid=<84...@5RW9G>,bayes=0,autolearn=no
> Jul 24 15:49:27 localhost imapd: DISCONNECTED, user=hebergement,
> ip=[::ffff:83.79.3.207], headers=398, body=99132, time=62494
> Jul 24 15:55:47 localhost spamd[29579]: prefork: child states:
> BBBBBBBBBBBBBBBBBBBBBBBBBKBBBBBBBB
> Jul 24 16:03:18 localhost spamd[11444]: spamd: copy_config timeout,
> respawning child process after 1 messages at /usr/bin/spamd line 969.

> Has anyone got an idea?

Unless you've got at least 2GB of RAM in the system, you've got way too 
many spamd children running and are swap thrashing.  You normally want 
to budget at least 45MB of RAM per child in addition to whatever memory 
other things on the system need.

So, you can start off by reducing the number of children to avoid load 
related problems in the first place (note: spamd is failing due to 
system load, the system load is probably due to swap thrashing and not 
spamd).  Then you can upgrade SpamAssassin to a newer version which has 
a better chance of surviving, and not then further contributing to, such 
a high load.


Daryl