Exim using 100% CPU all the time

djcronos

Verified User
Joined
Mar 21, 2006
Messages
75
Hi,

I'm running a dual p4 3.0ghz with 1gb RAM which hosts about 300 web sites. For the past few weeks, exim has been running at 100% cpu, and the load is anywhere from 10 to 30, sometimes more, on the box. I'm using CentOS 4.

Has anyone else had this same issue? I've already looked @ the mail logs, but everything seems fine - I don't see any errors.

We've had a couple complaints that people cannot check their e-mail because of this.

Any insight on this is very much appreciated. If I can supply more information, please let me know what I should provide.

Thanks in advance.
 
This is what my "top" looks like:

Code:
top - 08:03:35 up 11 days,  8:15,  1 user,  load average: 6.81, 7.71, 8.42
Tasks: 284 total,   1 running, 282 sleeping,   0 stopped,   1 zombie
Cpu(s):  7.0% us, 48.0% sy,  0.0% ni, 32.9% id, 12.1% wa,  0.0% hi,  0.0% si
Mem:   1034456k total,   978684k used,    55772k free,   179432k buffers
Swap:  8385888k total,   199292k used,  8186596k free,   530408k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                 
 5939 root      25   0 10384 3456 2784 S  100  0.3  99:25.65 exim                                                                                                    
 5942 mail      25   0 10384 1808 1132 S  100  0.2  98:43.36 exim                                                                                                    
 7825 apache    15   0 44592 9412 2252 S    3  0.9   0:00.30 httpd
 
Thanks - I'll give this a shot tonight when there's less load and report back with my results.

Thanks again.
 
Did you try stopping exim, kill those processes if they are still there, restarting exim to see if load increases again?
 
Yes I have, multiple times.

It appears I'm running Exim 4.67 - I'm going to recompile and upgrade to 4.69.

I'll let you all know how it goes. Thanks again.
 
I get the following error after following those instructions:

Code:
gcc dkim-exim.c
 
awk '{ print ($1+1) }' cnumber.h > cnumber.temp
rm -f cnumber.h; mv cnumber.temp cnumber.h
gcc version.c
rm -f exim
gcc -o exim
rfc2047.o(.text+0x384): In function `rfc2047_decode2':
: undefined reference to `libiconv_open'
rfc2047.o(.text+0x44f): In function `rfc2047_decode2':
: undefined reference to `libiconv'
rfc2047.o(.text+0x535): In function `rfc2047_decode2':
: undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make[1]: *** [exim] Error 1
make[1]: Leaving directory `/usr/local/src/exim-4.69/build-Linux-i386'
make: *** [go] Error 2

Also, in the instructions, the URL to download exim 4.69 is wrong - that URL doesn't have it anymore so I had to go to exim's site. Just an FYI for anyone else following that howto.
Any ideas?
 
Install iconv.
Code:
cd /usr/local/direcadmin/custombuild
./build iconv
 
Thanks, I did that, it said iconv successfully installed, but I get the same issue.

Any other ideas? Do I need to do anything like an ldconfig or something?
 
Great, I was finally able to upgrade, but for some reason after an hour or so of running, exim is back up again to 100% cpu usage. The load averages anywhere between 10 and 20 now, sometimes goes below to about 7 or 8, but not for long.

Any other ideas?
 
Are you using SpamBlocker?
If so, which version?
If you tail the log, is there anything about locked files?
 
Back
Top