[Users] Memory leak or expected behavior ?

Philippe Gramoullé philippe at gramoulle.com
Fri May 9 20:15:53 CEST 2014


Hi,

On my mail server i have 2 claws instances running 24/7/365 under 2 different Unix accounts.
One is being used for mails received through POP3 and the other one for IMAP.

The instance that takes up 22.8% of memory is the "IMAP" instance

top - 19:38:01 up 23 days, 19:57,  4 users,  load average: 0.39, 0.24, 0.17
Tasks: 132 total,   1 running, 131 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.5 us,  0.5 sy,  0.0 ni, 99.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   1032568 total,   779936 used,   252632 free,    43496 buffers
KiB Swap:        0 total,        0 used,        0 free.   242044 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND                                                                                  
10017 user10   20   0  485252 235876   6700 S  0.0 22.8   1872:06 claws-mail                                                                               
13273 user11   20   0  268972  59060  18668 S  0.0  5.7   0:07.65 sylpheed-claws                                                                           
5292  user11   20   0   27076  19976   1812 S  0.0  1.9  13:26.85 Xvnc4                                                                                    
5352  user10   20   0   24412  16992   1416 S  0.0  1.6 191:17.94 Xvnc4                                                                                    
13064 user11   20   0    8748   6512   1592 S  0.0  0.6   0:00.68 bash

Then i couldn't send mail, because it couldn't fork a process being out of memory

Here's the situation now that i restarted both claws-mail instances:

top - 19:51:43 up 23 days, 20:11,  4 users,  load average: 0.20, 0.20, 0.18
Tasks: 129 total,   1 running, 128 sleeping,   0 stopped,   0 zombie
%Cpu(s):  1.0 us,  0.7 sy,  0.0 ni, 97.4 id,  1.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   1032568 total,   581920 used,   450648 free,    50576 buffers
KiB Swap:        0 total,        0 used,        0 free.   251528 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND                                                                                  
13273 user11    20   0  277676  66300  20668 S  0.3  6.4   0:19.70 sylpheed-claws                                                                           
13310 user10    20   0  249632  29248  18532 S  0.3  2.8   0:45.88 claws-mail                                                                               
5292  user11    20   0   27228  20236   1820 S  0.0  2.0  13:34.49 Xvnc4                                                                                    
5352  user10    20   0   24412  17384   1808 S  0.0  1.7 191:26.21 Xvnc4                                                                                    
13064 user11    20   0    8748   6512   1592 S  0.0  0.6   0:00.68 bash


Server is Gnu Linux Debian/Sid running x86 kernel 3.12-1. Claws-mail is 3.9.3-63-g2baec7-dirty

# free (after restarting both claws instances)
             total       used       free     shared    buffers     cached
Mem:       1032568     590624     441944       7240      52616     253660
-/+ buffers/cache:     284348     748220
Swap:            0          0          0

Does this look like a memory leak or is this expected behavior ?

Thanks,

Philippe



More information about the Users mailing list