Koozali.org: home of the SME Server

CPU 100%

yscheung

CPU 100%
« on: January 27, 2005, 02:42:32 PM »
Hello ,

I setup a SME 6.0.1-01 as a firewall/gateway and deletegate the mail to a domino mail server at intranet , and I already upgrade as smeplus.sh script.
But the cpu useage very high when I start the spam service . I use a P4 2.4GA with 1G memory , the cpu will loading is always 100% .Can anyone help me ??

Thanks.

guest22

CPU 100%
« Reply #1 on: January 27, 2005, 02:49:41 PM »
Besides the fact that the 100% issue is not a fun thing, please keep in mind that YOU yourself are responsible for ANY modifications you make to the base distro.

Maybe the creators of the 'plus' script can jump in here for you?

yscheung

CPU 100%
« Reply #2 on: January 27, 2005, 02:57:57 PM »
Oh thanks,
WHen i stop the spam , every thinks ok . the cpu always just 1 - 5 % ..
here is the maillog  can anyone help me ??


Jan 27 17:09:31 hkfw spamd[7404]: processing message (unknown) for qmailq:404.
Jan 27 17:09:32 hkfw spamd[7408]: clean message (-102.6/8.0) for qmailq:404 in 2.4 seconds, 1608 bytes.
Jan 27 17:09:32 hkfw spamd[7408]: result: . -102 - ALL_TRUSTED,AWL,NO_REAL_NAME,USER_IN_WHITELIST scantime=2.4,size=1608,mid$
Jan 27 17:09:32 hkfw spamd[7408]: connection from localhost [127.0.0.1] at port 33583
Jan 27 17:09:32 hkfw spamd[7408]: info: setuid to qmailq succeeded
Jan 27 17:09:32 hkfw spamd[7408]: processing message <944467458.1106815005549.JavaMail.wsmgr@tidwaspri> for qmailq:404.
Jan 27 17:09:33 hkfw spamd[7406]: clean message (-102.6/8.0) for qmailq:404 in 2.7 seconds, 1697 bytes.
Jan 27 17:09:33 hkfw spamd[7406]: result: . -102 - ALL_TRUSTED,NO_REAL_NAME,USER_IN_WHITELIST scantime=2.7,size=1697,mid=(un$
Jan 27 17:09:33 hkfw spamd[7406]: connection from localhost [127.0.0.1] at port 33584
Jan 27 17:09:33 hkfw spamd[7406]: info: setuid to qmailq succeeded
Jan 27 17:09:33 hkfw spamd[7406]: processing message (unknown) for qmailq:404.
Jan 27 17:09:33 hkfw spamd[7405]: clean message (-102.6/8.0) for qmailq:404 in 2.5 seconds, 1684 bytes.
Jan 27 17:09:33 hkfw spamd[7405]: result: . -102 - ALL_TRUSTED,NO_REAL_NAME,USER_IN_WHITELIST scantime=2.5,size=1684,mid=(un$
Jan 27 17:09:33 hkfw spamd[7405]: connection from localhost [127.0.0.1] at port 33587
Jan 27 17:09:33 hkfw spamd[7405]: info: setuid to qmailq succeeded
Jan 27 17:09:33 hkfw spamd[7405]: processing message (unknown) for qmailq:404.
Jan 27 17:09:34 hkfw spamd[7404]: clean message (-102.6/8.0) for qmailq:404 in 2.4 seconds, 1722 bytes.
Jan 27 17:09:34 hkfw spamd[7404]: result: . -102 - ALL_TRUSTED,NO_REAL_NAME,USER_IN_WHITELIST scantime=2.4,size=1722,mid=(un$
Jan 27 17:09:34 hkfw spamd[7404]: connection from localhost [127.0.0.1] at port 33589
Jan 27 17:09:34 hkfw spamd[7404]: info: setuid to qmailq succeeded

mbachmann

CPU 100%
« Reply #3 on: January 27, 2005, 02:58:39 PM »
I have seen this several times with diffrent solutions. Check ps -AH for time consuming or defunct processes: sometimes there are defunct .pyzor processes, which you only can stop with kill -9. Rebooting or restarting spamasssin, qmail, clamd, httpd might also help. Rebooting is your last resort.

yscheung

CPU 100%
« Reply #4 on: January 27, 2005, 03:11:06 PM »
Here is the TOP result
I try to send a mail from another mail server



 10:09pm  up  4:29,  1 user,  load average: 0.31, 0.11, 0.03
208 processes: 182 sleeping, 2 running, 24 zombie, 0 stopped
CPU states: 25.7% user,  2.5% system,  0.0% nice, 71.6% idle
Mem:  1029436K av,  462460K used,  566976K free,       0K shrd,   56692K buff
Swap:  262008K av,    5820K used,  256188K free                   62808K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
 5470 qmailq     9   0  9416 9416  1448 S     6.9  0.9   0:00 perl5.6.1
 5473 qmailq     9   0  9432 9432  1460 S     6.9  0.9   0:00 perl5.6.1
 5476 qmailq    19   0  9376 9376  1456 S     6.9  0.9   0:00 perl5.6.1
 5378 root       9   0 21296  20M  1828 S     2.1  2.0   0:00 spamd
 5377 root       9   0 21308  20M  1816 S     1.7  2.0   0:00 spamd
 5379 qmailq     9   0 21248  20M  1836 S     0.9  2.0   0:00 spamd
 5376 root       9   0 21272  20M  1808 S     0.7  2.0   0:00 spamd
 5403 qmailq     9   0  6376 6376   796 S     0.5  0.6   0:00 clamd
    6 root       9   0     0    0     0 SW    0.3  0.0   1:03 kscand

yscheung

CPU 100%
« Reply #5 on: January 27, 2005, 03:41:36 PM »
Hello ,

I never modify the " plus" script . I find that the spam service has a loop when checking the spam mail , and use many many resources... help !!!

thanks,

jcoleman

Re: CPU 100%
« Reply #6 on: January 27, 2005, 03:47:35 PM »
Quote from: "yscheung"
I never modify the " plus" script . I find that the spam service has a loop when checking the spam mail , and use many many resources... help !!!


What RequestedDeletion meant is that by using the "update" script you have added quite a few layers of complexity.  The update script is an addon and is not supported by contribs.org.

What "I" would do in your case for right now is to enter the following at a cmd line:

# killall -9 perl5.6.1
# killall -9 spamd

Remember that any time that you modify a base install you should be prepared to deal with unexpected results.

-jeff

cc_skavenger

CPU 100%
« Reply #7 on: January 27, 2005, 05:48:04 PM »
This has been discussed many times.  Search is your friend:

http://forums.contribs.org/index.php?topic=25376.msg102832#msg102832

&

http://sme.swerts-knudsen.dk/index.html?frame=http%3A//sme.swerts-knudsen.dk/howtos/howto_29.htm

Read the FAQ at the botom of the second link for help.

HTH

yscheung

CPU 100%
« Reply #8 on: January 28, 2005, 01:33:50 PM »
Hello,

I try to uninstall spamassassin and reinstall again , problem solved ..

Thanks all,
Jack.