Email sevrer is as slow as an dying dog. Any clues?

From: S. Loewenthal (sloewenthal@gemini.edu)
Date: Thu Nov 17 2005 - 15:17:38 EST


Dear all,

I'd like to for some advise on server performance. We have a Netra 100,
1xCPU running as a Sendmail server / POP and IMAP, which I've just
inherited. In intend to replace this as soon as possible with a better
equipped model, but cannot until much later.

It automounts the users /home/username from a Solaris 7 NFS server. The
Email server run Solaris 8.
Its as slow as a dog with regular load averages of 8 , 6, 4! It has 4Gb
of swap configured (I don't know why), which isn't really being used.
The server has no hung/stale mounts on it, and the NFS home directory
server has nfsd -a 64. Each imapd or popd process often eats up 15% of
the CPU when running. Users complain that it takes 15 mins to read
mail, or it times out. This has been going on for quite some time now.

Multiple users have many imapd processes running. How many ought to be
running per user?

Please find below some information about this server.

If anyone knows of some immediate places to look at I would be
greatful. Just some pointers to staty with?

Best wishes, S.
----------------------------------------------------------------------------------------

Mail server uname,
SunOS mailserver 5.8 Generic_108528-19 sun4u sparc
SUNW,UltraSPARC-IIi-cEngine

Number of IMAPD processes running on the mail server are,
$ ps -eaf|grep imap|wc -l
      81

TOP
last pid: 29465; load averages: 9.56, 7.64,
5.53
09:57:28
156 processes: 142 sleeping, 13 running, 1 on cpu
CPU states: 0.0% idle, 43.8% user, 56.3% kernel, 0.0% iowait, 0.0% swap
Memory: 1024M real, 426M free, 461M swap in use, 4380M swap free

PRSTAT
   PID USERNAME SIZE RSS STATE PRI NICE TIME CPU
PROCESS/NLWP
 28608 user1 3872K 2832K run 47 0 0:00.07 6.0% imapd/1
 28596 user2 3816K 2760K run 44 0 0:00.08 5.7% imapd/1
 28477 user2 3816K 2680K run 46 0 0:00.03 5.3% imapd/1
 28834 user2 3816K 2776K sleep 49 0 0:00.02 4.6% imapd/1
 28890 user4 3792K 2688K run 46 0 0:00.01 3.9% ipop3d/1
 28498 user2 3816K 2656K run 45 0 0:00.01 3.8% imapd/1
 28898 user5 3712K 2520K run 44 0 0:00.01 3.6% ipop3d/1
 28901 asg21 3712K 2488K run 46 0 0:00.01 3.3% ipop3d/1
 28910 pgogo 3712K 2512K run 46 0 0:00.00 2.6% ipop3d/1
  1549 smadmin 13M 8960K sleep 54 0 0:19.48 1.2% perl/1
 28885 j111 3816K 2672K sleep 60 0 0:00.00 1.0% imapd/1
 17873 smadmin 30M 27M sleep 48 0 0:08.13 0.9% perl/1
 17861 smadmin 21M 16M sleep 58 0 0:08.33 0.7% perl/1
 28909 user44 3816K 2672K sleep 58 0 0:00.00 0.3% imapd/1
 28931 root 1712K 1400K cpu0 48 0 0:00.00 0.3% prstat/1
 28928 user1 3816K 1448K run 9 0 0:00.00 0.3% imapd/1
 28904 user6 3816K 2672K sleep 48 0 0:00.00 0.3% imapd/1
 28916 user77 3816K 2672K sleep 58 0 0:00.00 0.2% imapd/1
   236 root 6216K 5024K sleep 52 0 0:00.00 0.2% nscd/13
 28925 root 5648K 3240K sleep 58 0 0:00.00 0.2% sendmail/1
 28521 cuser1 4104K 3088K sleep 58 0 0:00.06 0.2% imapd/1
   201 root 6184K 4480K sleep 54 0 0:02.23 0.2% automountd/6
 28699 user2 3816K 2648K sleep 58 0 0:00.00 0.2% imapd/1
 28845 root 6088K 3832K sleep 58 0 0:00.00 0.1% sendmail/1
 28848 user2 3816K 2648K sleep 59 0 0:00.00 0.1% imapd/1
 28897 destraa 3816K 2632K sleep 54 0 0:00.00 0.1% imapd/1
 28722 user1 3816K 1600K sleep 58 0 0:00.00 0.1% imapd/1
 28289 swalk 3816K 2672K sleep 58 0 0:00.00 0.1% imapd/1
 28709 user2 3816K 2648K sleep 58 0 0:00.00 0.1% imapd/1
 23685 kscott 4456K 3456K sleep 48 0 0:00.06 0.1% imapd/1
Total: 159 processes, 271 lwps, load averages: 8.52, 6.12, 4.40

TRUSSing an imapd process says, "Zzzz"
truss -p 22024
read(0, 0x001EFCFC, 8192) (sleeping...)
read(0, " 1 7 9 N O O P\r\n", 8192) = 10
alarm(0) = 1740
fstat(7, 0xFFBEE920) = 0
time() = 1132258043
stat("/etc/nologin", 0xFFBEF2C0) Err#2 ENOENT
time() = 1132258043
stat("/etc/imapd.alert", 0xFFBEF1C8) Err#2 ENOENT
stat("/home/user1/.imapalert", 0xFFBEF1C8) Err#2 ENOENT
write(1, " 1 7 9 O K N O O P ".., 23) = 23
alarm(1800) = 0
read(0, 0x001EFCFC, 8192) (sleeping...)
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:36:57 EDT