RE: [Courier-imap] courier imapd consuming 90% CPU
Brought to you by:
mrsam
From: Koustubha K. <km...@an...> - 2005-11-18 12:56:36
|
Hi, Thank you for replying. here is the strace. Feankly I dont understand it. Can you please through some light? Particularly on those not found / no such file or directory errors? ------------------------------------------------------ strace imapd execve("/usr/local/bin/imapd", ["imapd"], [/* 22 vars */]) = 0 brk(0) = 0x822d000 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f66000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/tls/i686/sse2/libgdbm.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/tls/i686/libgdbm.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/tls/sse2/libgdbm.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/tls/libgdbm.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/i686/sse2/libgdbm.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/i686/libgdbm.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/sse2/libgdbm.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/libgdbm.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=77281, ...}) = 0 old_mmap(NULL, 77281, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f53000 close(3) = 0 open("/usr/lib/libgdbm.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\361"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=25476, ...}) = 0 old_mmap(0xd2e000, 26868, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xd2e000 old_mmap(0xd34000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0xd34000 close(3) = 0 open("/usr/local/lib/courier-authlib/tls/i686/sse2/libcourierauth.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/tls/i686/libcourierauth.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/tls/sse2/libcourierauth.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/tls/libcourierauth.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/i686/sse2/libcourierauth.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/i686/libcourierauth.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/sse2/libcourierauth.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/libcourierauth.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360 \0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=37636, ...}) = 0 old_mmap(NULL, 39204, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xd8d000 old_mmap(0xd96000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0xd96000 close(3) = 0 open("/usr/local/lib/courier-authlib/tls/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/tls/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\n\217\277"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1489572, ...}) = 0 old_mmap(0xbe4000, 1219548, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xbe4000 old_mmap(0xd08000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x124000) = 0xd08000 old_mmap(0xd0c000, 7132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xd0c000 close(3) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f52000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f529e0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0xd08000, 8192, PROT_READ) = 0 mprotect(0xbe0000, 4096, PROT_READ) = 0 munmap(0xb7f53000, 77281) = 0 time([1132318232]) = 1132318232 brk(0) = 0x822d000 brk(0x824e000) = 0x824e000 getuid32() = 0 socket(PF_FILE, SOCK_STREAM, 0) = 3 fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) close(3) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 3 fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) close(3) = 0 open("/etc/nsswitch.conf", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=1686, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f65000 read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1686 read(3, "", 4096) = 0 close(3) = 0 munmap(0xb7f65000, 4096) = 0 open("/usr/local/lib/courier-authlib/tls/i686/sse2/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/tls/i686/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/tls/sse2/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/tls/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/i686/sse2/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/i686/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/sse2/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/courier-authlib/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=77281, ...}) = 0 old_mmap(NULL, 77281, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f53000 close(3) = 0 open("/lib/libnss_files.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \33\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=46552, ...}) = 0 old_mmap(NULL, 41616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x808000 old_mmap(0x811000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x811000 close(3) = 0 mprotect(0x811000, 4096, PROT_READ) = 0 munmap(0xb7f53000, 77281) = 0 open("/etc/passwd", O_RDONLY) = 3 fcntl64(3, F_GETFD) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 fstat64(3, {st_mode=S_IFREG|0644, st_size=8125, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f65000 read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 4096 close(3) = 0 munmap(0xb7f65000, 4096) = 0 fcntl64(0, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 fcntl64(1, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 stat64(".", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 chdir("./Maildir") = -1 ENOENT (No such file or directory) write(2, "chdir ./Maildir: No such file or"..., 43chdir ./Maildir: No such file or directory ) = 43 time([1132318232]) = 1132318232 write(1, "* BYE [ALERT] Fatal error: ./Mai"..., 65* BYE [ALERT] Fatal error: ./Maildir: No such file or directory ) = 65 exit_group(1) = ? ------------------------------------------------------------------------ --------------------------------------------------------------- strace ends with ./Maildir: No such file or directory. But which users Maildir? How do I make that out? Also does this strace through some light on the 90% + cpu consumption? Appreciate your help. Regards, Koustubha Kale -----Original Message----- From: cou...@li... [mailto:cou...@li...] On Behalf Of Brian Candler Sent: Friday, November 18, 2005 2:37 PM To: Koustubha Kale Cc: 'Jay Lee'; cou...@li... Subject: Re: [Courier-imap] courier imapd consuming 90% CPU On Thu, Nov 17, 2005 at 10:22:25AM +0530, Koustubha Kale wrote: > I have fetchmail bringing mail from the main Head Office server to > this branch office box (so I dont have vpopmail here). I dont have any > spam & virus filtering on this box. Its done at the HO. I also dont > have qmail-scanner therefore. My users are about 50 who connect using > outlook with IMAP from local lan. I have setup local accounts for all > of them. Very few ever access the mails by sqwebmail. The cpu usage > shoots up when a user connects by IMAP. Sience there are always a few > users connecting concurrently the cpu usage goes up to 96% sometimes & > the whole system is sluggish. Although the users are few the mail > volume is around 10 message per user per minute. I have a pentium 4 > 2.4Ghz with 1gb ram. Sounds like it could be the FAM/GAMIN problem reported before. Use 'top' to locate the imapd process which is using lots of CPU, then attach strace (Linux) ktrace (FreeBSD) or truss (Solaris) to it to see what it is doing. > Other symptoms are fetchmail dies with signal 13 at the end of each > run instead of sleeping after sending several smtp quits. Signal 13 is SIGPIPE: fetchmail is trying to send some data, but the remote end has already disconnected. It's a fetchmail bug if it doesn't catch or ignore that signal. > Also memory consumption is also near 100 % & swapping happens > regularly. Again, identify which process(es) are using more than the expected amount of RAM, using top or ps. Brian. ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ Courier-imap mailing list Cou...@li... Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap |