spamd child eating 100% of Cpu help

bmcpanel

Well-Known Member
Jun 1, 2002
544
0
316
I had this problem on one server consistently. I applied the patch as nick suggested. I have not yet experienced the problem again. It has been about 4 days. I will continue to monitor, but I feel my spamd is running much smoother after the patch.
 

bmcpanel

Well-Known Member
Jun 1, 2002
544
0
316
have the same problem after bug fix

User Domain %CPU %MEM MySQL Processes
login login.com 9.59 2.47 0.0
Top Process %CPU 34.8 spamd child
Top Process %CPU 33.9 spamd child
Top Process %CPU 32.2 spamd child
There was also a mention in this thread of needing Perl 5.8.8 Make sure you have 5.8.8 and not 5.8.7
 

MichaelShanks

Well-Known Member
PartnerNOC
Aug 20, 2001
103
0
316
is this going to be fixed via the automatic updates? lots of users otherwise are going to be left with this bug if they don't' see this thread or the mail that was sent out to the list of subscribers

also is there a CLI fix for this?

I think if cpanel manage to stablise mail and then just leave it alone 90% of our problems will go away.
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
is this going to be fixed via the automatic updates? lots of users otherwise are going to be left with this bug if they don't' see this thread or the mail that was sent out to the list of subscribers
SpamAssassin is releasing 3.2.4 in the near future, this will correct the problem.



also is there a CLI fix for this?
Code:
/scripts/autorepair spamd_dbm_fix
/scripts/restartsrv_exim
I think if cpanel manage to stablise mail and then just leave it alone 90% of our problems will go away.
 

kishornsk

Registered
Apr 26, 2006
3
0
151
INDIA
Hello dexus,

deleting the file /home/user/.spamassassin/__db.bayes_toks.new does the trick for me. I also made the changes in /etc/mail/spamassassin/local.cf

Hopefully, the problem should not arise again.
 

ilbin

Member
Apr 12, 2004
14
0
151
Here's something odd I may have missed when searching:

Upgraded perl to 5.8.8 from 5.8.4 on an older box, but statement from this autofixer still reads as the 5.8.4. I'm thinking the patch didn't take as a result as the wrong files were being patched.

/usr/lib/perl5/site_perl/5.8.4/Mail/SpamAssassin (typed this in so ignore typos please)

It's my assumption that a cpanel update will be needed to have Mail/SpamAssassin incorporated into the 5.8.8 version.

Is that correct? Any thoughts?
 

adapter

Well-Known Member
PartnerNOC
Sep 17, 2003
391
0
166
any ETA on the new SpamAssasin release? the patch dont work at the 100%

thanks
 

cappi

Member
Jul 24, 2004
20
0
151
Same problem

I had the same problem. I applied the patch and the problem disappeared for a couple of days. Now it's back...

Any solutions yet?
 

paradoxic

Member
PartnerNOC
Jun 13, 2004
22
0
151
This is a major issue. I'm trying to correct for a client. Can we please get an update on this?
 

adapter

Well-Known Member
PartnerNOC
Sep 17, 2003
391
0
166
from august there isn't any SpamAssasin Update, we have always 100% of cpu usage from spamassasin!! any solution?
 

xprt5

Well-Known Member
Apr 6, 2003
72
0
156
Houston
Please run the following from shell as root.

/scripts/autorepair spamd_dbm_fix
/scripts/restartsrv_exim

This should resolve any spamd load issues that are occuring.
 

adapter

Well-Known Member
PartnerNOC
Sep 17, 2003
391
0
166
already do months ago but dont work!

PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND
16510 oktelit 19 0 46 0:00.91 1.3 30740 27m 2056 R spamd
16551 mmurgia 16 0 38 0:00.20 1.3 28396 25m 1972 S spamd
15911 museoaut 25 0 31 0:23.61 1.5 34044 30m 2092 R spamd
12873 gruppoam 25 0 19 331:18.21 2.2 50092 45m 2092 R spamd
15823 provedi 25 0 19 0:21.33 1.5 34868 29m 2100 R spamd
 

tywe

Member
Oct 13, 2007
15
0
51
Same here, nothing has worked to fix this :( It is only one user that this happens with, but each e-mail he receives creates a spamd that uses 100% cpu for about 10 minutes.. The only thing I haven't tried is deleting the account and re-creating it, but I really didn't want to do that..

Please help!
 

Dawizz

Registered
Jun 5, 2004
4
0
151
I have had the same problem for the past 2 weeks with CPU being 70-80% utilized, I have applied all the so called fixes and nothing.
 

sweetsteve

Member
Sep 22, 2006
10
0
151
I've been having this same problem, have applied the fix manually, have perl 5.8.8

I also set various spamassassin parameters as recommended by another board so it's minimum message size is small, it only runs one process, it uses RBL's to reject spam.

When applying the fix, or killing off the rougue processes, it seems to fix it for awhile, but then a day or two later I notice the server slowing down, check, and there it is again.

It's primarily one of my accounts that's really bad, but others are somewhat bad. The only thing I've noticed about the worst account is that they use IMAP, and have quite a bit of mail stored on the server. (1 user has 500MB)
 

dexus

Well-Known Member
Jan 14, 2006
180
11
168
cPanel Access Level
Root Administrator
This is happening only when account have no free space to receive new mail, so you can increase disk space for that user or ask that user to free up disk space.
 

sweetsteve

Member
Sep 22, 2006
10
0
151
This is happening only when account have no free space to receive new mail, so you can increase disk space for that user or ask that user to free up disk space.
This account has 1500MB of free space, all email accounts have no quotas (unlimited)

That's what I thought as well.

Any other suggestions?
 
Last edited:

sweetsteve

Member
Sep 22, 2006
10
0
151
Did you checked disk usage in WHM/cPanel or with du shell command?
WHM states this account has 2000MB quota, 700MB used

I've looked at all my accounts and everyone has plenty of space.

Would this happen if some messages coming in were very large? This account uses some type of voice mail system that may have large messages.

I've looked through the account's mail directory, and the largest things in there are around 1MB.

I have plenty of total drive space.
 
Last edited: