On Feb 22, 2006, at 5:23 AM, Willem Riede wrote:
Here are some statistics of the imap process serving a mailbox of
75,000 messages over time (~30 hours) - the first line of each group comes
from "ps alx", the second from "cat /proc/15342/maps":F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY
TIME COMMAND 4 500 15342 2578 15 0 94648 77740 - S ?
1:10 imap 00595000-0071a000 rw-p 00595000 00:00
0 [heap]..
4 500 15342 2578 15 0 96164 79520 - S ?
6:11 imap 00595000-0088d000 rw-p 00595000 00:00
0 [heap]During this time new mail came in, got read, and some of those
messages were deleted. You can see that as the process ages, the heap does grow.
Yes, this isn't unexpected since I'm also seeing the heap grow
slowly. But since it's grown only 1.5MB in 30 hours (to 3MB), that
isn't too bad of a problem.
Could you try running imap with some memory leak detection tool/
library, such as Valgrind or dmalloc? I know I should try that myself
also..