Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 15 of 48
  1. #1
    Member
    Join Date
    Sep 2004
    Posts
    523

    Thumbs up spamd child eating 100% of Cpu help

    Spamd child is eating 100% of CPU.
    It happens only with a mail account.

    Notes:
    Spamassasin is globaly enabled on all domains, but I cant disable in this one.
    Mail account is empty

    The only fix I found by now is to stop and start exim. Is there a permanent solution to this?????

    Help will be apreciated!

    Thanks

  2. #2
    Member
    Join Date
    Sep 2004
    Posts
    523

    Default

    solution: terminate the account and add it again.

  3. #3
    Member
    Join Date
    Jul 2004
    Posts
    185

    Default

    bsasninja,

    We have this same problem on 2 of our servers, the same user (different on each server) keeps hogging a "spamd child" process with high cpu, as if its endlessly looping or something.

    Can you confirm that since reinstalling the account as per your solution that this really did stop for good?

    Thanks.

    P.S. does anyone else have a fix that does not involve removing the affected account(s)?
    Last edited by jack01; 08-01-2007 at 11:16 AM.

  4. #4
    Member
    Join Date
    Dec 2003
    Location
    France
    Posts
    300
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Check that the account is not running out of space. I had the very same issue and this was the cause...

    Good luck
    Marie - Co-Owner
    Need Further Assistance ? Here you go !
    English, french and spanish support

  5. #5
    Member
    Join Date
    Sep 2004
    Posts
    523

    Default

    150mb of space, 116mb used.

    Using spamassassin 3.2.1

    Thanks

  6. #6
    Member
    Join Date
    Dec 2003
    Location
    France
    Posts
    300
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Did you try to trace the process ?
    Marie - Co-Owner
    Need Further Assistance ? Here you go !
    English, french and spanish support

  7. #7
    Member
    Join Date
    Sep 2004
    Posts
    523

    Default

    shows the following

    open("/home/user/.spamassassin/auto-whitelist.lock.server1.domain.com.31435", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 11
    ioctl(11, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe854f8) = -1 ENOTTY (Inappropriate ioctl for device)

    stat64("/home/user/.spamassassin/auto-whitelist", {st_mode=S_IFREG|0600, st_size=10510336, ...}) = 0
    open("/home/user/.spamassassin/auto-whitelist", O_RDWR|O_LARGEFILE) = 11

    is there a way to tell spamassassin not to scan files over 1mb or so ?

    Thanks

  8. #8
    Member
    Join Date
    Jan 2006
    Posts
    150
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I had the same problem for last few days, but when my spamd stucks it did this:

    Code:
    stat64("/home/user/.spamassassin/bayes_toks.new", 0xbfffb120) = -1 ENOENT (No such file or directory)
    open("/home/user/.spamassassin/__db.bayes_toks.new", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = -1 EEXIST (File exists)
    open("/home/user/.spamassassin/__db.bayes_toks.new", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = -1 EEXIST (File exists)
    open("/home/user/.spamassassin/__db.bayes_toks.new", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = -1 EEXIST (File exists)
    stat64("/home/user/.spamassassin/bayes_toks.new", 0xbfffb120) = -1 ENOENT (No such file or directory)
    open("/home/user/.spamassassin/__db.bayes_toks.new", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = -1 EEXIST (File exists)
    open("/home/user/.spamassassin/__db.bayes_toks.new", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = -1 EEXIST (File exists)
    So I just deleted file /home/user/.spamassassin/__db.bayes_toks.new and spamd got out of loop

  9. #9
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    Also make sure you have perl 5.8.8
    and if you aren't using nfs

    uncomment lock_method flock in /etc/mail/spamassassin/local.cf and run
    Code:
    /scripts/restartsrv_exim

  10. #10
    Member isputra's Avatar
    Join Date
    May 2003
    Location
    Mbelitar
    Posts
    593

    Default

    In my case, my customer is running out of space.
    So i do like dexus said and works.

    I have perl 5.8.8 :
    ----------
    root@server [~]# perl -v
    This is perl, v5.8.8 built for i686-linux
    ----------

    cpanelnick, could you explain to me what is lock_method flock in /etc/mail/spamassassin/local.cf for ?
    It's me ...... It's me ......

  11. #11
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2003
    Posts
    397

    Default

    same problem here, if i delete the db file in the spamassasin folder i am out from the loop, but is there any fast way to fix this problem? i can't do it for all my server and over quota account

    Thx

  12. #12
    Registered User
    Join Date
    Apr 2005
    Posts
    1

    Default

    Same problem

    Some accounts close to quota, others have plenty of space. Other thing is it seems to be random. It started out with 3 accounts, now its around 7.

    I ended up turning Bayesian off altogether

  13. #13
    Member
    Join Date
    Jan 2002
    Posts
    50

    Default

    try deleting the databases of Bayesian in /home/user/.spamassassin


    We found that large databases are usually responsible for this problem. Removing the files usually resolves the issue. Further more, keep an eye out on their size.

  14. #14
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    This is a bug in the berkleydb library. We have tracked it down and are testing a work around patch for spamassassin. We have also reported the problem to spamassassin and the DB_File author. We will release an autofixer for spamassassin once the testing has been completed and proven to not create any unwanted side effected.

    Note: RHEL 5 && Centos 5 are not affected

  15. #15
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    Update: To install the patch:

    https://__YOUR_SEVER_IP_HERE__:2087/scripts2/autofixer

    Enter:

    spamd_dbm_fix

+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Similar Threads & Tags
Similar threads

  1. Long times for spamd child
    By outofoptions in forum E-mail Discussions
    Replies: 2
    Last Post: 01-12-2009, 01:57 PM
  2. Spamd Hangs with 100% CPU Load
    By a.sheipani in forum E-mail Discussions
    Replies: 4
    Last Post: 05-03-2008, 03:53 PM
  3. how to spamd child process?
    By Skin in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 01-27-2007, 03:36 PM
  4. spamd eating memory and cpu, load averages > 2
    By heath in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 08-15-2005, 09:23 AM
  5. Spamd Child
    By Jones in forum cPanel and WHM Discussions
    Replies: 24
    Last Post: 10-15-2004, 05:31 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube