This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

spamd 100% cpu use.

This morning my ASL 4.000 box went crazy at about 6:50AM
100% CPU usage, looks like the spamdaemon.  Any ideas what would cause this ? I cant see anything alarming in the logs.


squid    16333  0.1  3.5 11984 9236 ?        S    10:06   0:02 /usr/bin/perl /usr/local/bin/spamd -d -u exim --noadd-from --local
squid    20410 33.7 15.5 44036 40092 ?       R    10:19   5:36  \_ /usr/bin/perl /usr/local/bin/spamd -d -u exim --noadd-from --loca
squid    22762 25.6  9.0 26088 23288 ?       R    10:28   1:51  \_ /usr/bin/perl /usr/local/bin/spamd -d -u exim --noadd-from --loca
 


This thread was automatically locked due to age.
Parents
  • Help !  CPU still at 99-100% !  I have tried shutting down the smtp relay via web admin but CPU still reports at 100%.  Got so bad earlier I could not access ASL via web interface.  Version is 4.000  here is my ps list.

    USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
    root         1  0.3  0.1  1384  504 ?        S    13:13   0:02 init [3] 
    root         2  0.0  0.0     0    0 ?        SW   13:13   0:00 [keventd]
    root         3  0.0  0.0     0    0 ?        SWN  13:13   0:00 [ksoftirqd_CPU0]
    root         4  0.0  0.0     0    0 ?        SW   13:13   0:00 [kswapd]
    root         5  0.0  0.0     0    0 ?        SW   13:13   0:00 [bdflush]
    root         6  0.0  0.0     0    0 ?        SW   13:13   0:00 [kupdated]
    root        11  0.0  0.0     0    0 ?        SW   13:13   0:00 [kjournald]
    root        41  0.0  0.0     0    0 ?        SW   13:14   0:00 [kjournald]
    root        42  0.0  0.0     0    0 ?        SW   13:14   0:00 [kjournald]
    root        43  0.0  0.0     0    0 ?        SW   13:14   0:00 [kjournald]
    root        44  0.0  0.0     0    0 ?        SW   13:14   0:00 [kjournald]
    root        45  0.0  0.0     0    0 ?        SW   13:14   0:00 [kjournald]
    root        46  0.0  0.0     0    0 ?        SW   13:14   0:00 [kjournald]
    root       167  0.4  0.1  1392  512 ?        S    13:14   0:02 /usr/local/bin/ipaccd
    root       199  0.1  0.2  1540  676 ?        S    13:14   0:00 /usr/sbin/syslogd -m 60 -r -a /dev/log -a /var/chroot-ahi/dev/log -a 
    root       200  0.0  0.2  1456  544 ?        S    13:14   0:00 /usr/sbin/klogd -k /System.map -c 1
    root       261  0.0  0.0     0    0 ?        SW   13:14   0:00 [khubd]
    root       291  0.0  0.2  1440  576 ?        S    13:14   0:00 /usr/sbin/cron
    root       342  0.0  0.4  2516 1060 ?        S    13:14   0:00 /sbin/sshd -4 -f /etc/sshd_config
    root      1362  0.0  0.5  5184 1296 ?        S    13:15   0:00  \_ /sbin/sshd -4 -f /etc/sshd_config
    loginuse  1388  0.0  0.4  5140 1272 ?        S    13:15   0:00      \_ /sbin/sshd -4 -f /etc/sshd_config
    loginuse  1389  0.0  0.4  2256 1140 pts/0    S    13:15   0:00          \_ -bash
    root      1426  0.0  0.4  2236 1100 pts/0    S    13:15   0:00              \_ bash
    nobody     346  0.0  0.5  2864 1416 ?        S    13:14   0:00 /usr/bin/perl -w /usr/sbin/psd-watch.pl
    root       350  0.0  0.2  1784  680 ?        S    13:14   0:00 /bin/license /etc/wfe/conf/license
    root       410  0.2  0.9  4848 2504 ?        S    13:14   0:01 /usr/sbin/httpd -f /etc/httpd/httpd.conf
    wwwrun     437  0.0  0.9  4792 2484 ?        S    13:14   0:00  \_ /usr/sbin/fcgi- -f /etc/httpd/httpd.conf
    wwwrun     958  8.2  6.7 19848 17384 ?       S    13:14   0:41  |   \_ /usr/local/httpd/htdocs/index.fpl
    wwwrun    5653  0.0  0.2  2580  680 ?        R    13:23   0:00  |       \_ /bin/ps auwxf --cols 72
    wwwrun    5041  0.3  1.1  5300 3064 ?        S    13:21   0:00  \_ /usr/sbin/httpd -f /etc/httpd/httpd.conf
    wwwrun    5165  0.2  1.1  5124 2884 ?        S    13:22   0:00  \_ /usr/sbin/httpd -f /etc/httpd/httpd.conf
    root       419 21.4  6.7 18912 17484 ?       R    13:14   1:52 ./mdw_deamon.pl
    root       439  0.0  1.8  6136 4844 ?        S    13:14   0:00 ./aua.bin /etc/wfe/conf/aua_main_config.ini
    root      2901  0.0  0.0     0    0 ?        Z    13:17   0:00  \_ [aua.bin ]
    root       468  0.0  0.1  1356  476 ?        S    13:14   0:00 /usr/local/bin/daemon-watcher superdaemon.pl /usr/local/bin/superdaem
    root       469  0.0  0.1  1352  400 tty1     S    13:14   0:00 /sbin/mingetty --no-hostname tty1
    root       470  0.0  0.1  1352  400 tty2     S    13:14   0:00 /sbin/mingetty --no-hostname tty2
    root       472  0.6  1.5  5320 3956 ?        S    13:14   0:03 /usr/local/bin/superdaemon.pl
    root      1305  0.0  0.2  1736  580 ?        S    13:15   0:00 /bin/cnotifier /etc/wfe/conf/settings /usr/local/bin/anotifier /var/c
    root      1321  0.0  0.7  3432 1912 ?        S    13:15   0:00 /usr/sbin/snmpd__
    squid     1339  0.0  0.3  2092  792 ?        S    13:15   0:00 /bin/sockd -D
    squid     1345  0.0  0.3  2092  812 ?        S    13:15   0:00  \_ /bin/sockd -D
    squid     1346  0.0  0.3  2192  900 ?        S    13:15   0:00  \_ /bin/sockd -D
    squid     1350  0.0  0.3  2092  792 ?        S    13:15   0:00  \_ /bin/sockd -D
    squid     1351  0.0  0.3  2092  792 ?        S    13:15   0:00  \_ /bin/sockd -D
    squid     1352  0.0  0.3  2092  792 ?        S    13:15   0:00  \_ /bin/sockd -D
    squid     1361  0.0  0.3  2108  824 ?        S    13:15   0:00  \_ /bin/sockd -D
    squid     1384  0.0  0.3  2092  792 ?        S    13:15   0:00  \_ /bin/sockd -D
    root      2202  0.1  0.2  1524  664 ?        S    13:15   0:00 /usr/local/bin/nacctd
    root      2997  0.0  0.3  3744  968 ?        S    13:18   0:00 /bin/squidf -sYD
    squid     3002  1.2  2.5  8708 6644 ?        S    13:18   0:03  \_ (squid) -sYD
    squid     3006  0.0  0.1  1340  328 ?        S    13:18   0:00      \_ (unlinkd)
    nobody    2999  0.0  0.1  1412  500 ?        S    13:18   0:00 /bin/dhttpd -p 8081
    squid     3003  0.0  0.4  4828 1236 ?        S    13:18   0:00 /bin/urlfilter -f -d
    root      4405  0.0  0.6  2588 1612 ?        S    13:20   0:00 /usr/sbin/named__
    squid     5129  2.4  4.2 11984 10904 ?       S    13:21   0:02 /usr/bin/perl /usr/local/bin/spamd -d -u exim --noadd-from --local
    squid     5131  0.0  0.5  3852 1356 ?        S    13:21   0:00 /bin/exim -bd -q20m
    squid     5205  0.2  0.5  3876 1504 ?        S    13:22   0:00  \_ /bin/exim -bd -q20m

     
  • Can no longer access webmin at all  [:S]

    I can ssh in, but that's it.  Proxy server no longer responding or timing out so can't get out to web sites. 
  • login via ssh as root:

    /etc/rc.d/smtp stop

    joe or vi /etc/wfe/conf/smtpdata
    change 'antispam = 1' to 0

    wait till load goes down

    /etc/rc.d/smtp start

    just in case webadmin does not respond:

    /etc/rc.d/httpd restart

    we know about one issue spamd eats memory/cpu and this will be fixed in the first up2date for sure...

    cheers
    /marcel 
  • Fixed itself.  Looks like nightly maintenance fixed it ?

     [image]www.micromine.com.au/.../image]  
Reply Children
No Data