[tpop3d-discuss] memory usage

Marcin Sochacki wanted at gnu.univ.gda.pl
Fri, 28 Sep 2001 20:07:51 +0200


On Fri, Sep 28, 2001 at 10:52:52AM -0700, Nancy Pettigrew wrote:
> Has anyone else noticed high memory usage on the tpop3d process?  I'm
> running tpop3d 1.3.4 (with some local tweaks) on Linux RH 6.2.  Sysadmin
> here has questioned the mem usage, and has noticed it as high as 300M.
> Possibly increasing over time...
> 
> Here's the top output:
> PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
> 23667 root       1   0 94344  92M 94176 S       0  0.0  9.1  38:16 tpop3d
> 
> and the next day...
> 23667 root       6   0  106M 106M 98.3M S       0  1.9 10.5  48:14 tpop3d

Looks like some memory leak, on my system:

  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
 1039 root       0   0  3136 3136   804 S       0  0.0  1.2   1:05 tpop3d
 1044 root       0   0  1332 1332   748 S       0  0.0  0.5   0:04 tpop3d
 1049 root       0   0  1368 1368   756 S       0  0.0  0.5   0:03 tpop3d
 1054 root       0   0  1096 1096   756 S       0  0.0  0.4   0:00 tpop3d
 1059 root       0   0  1100 1100   756 S       0  0.0  0.4   0:00 tpop3d
 1064 root       0   0  1132 1132   756 S       0  0.0  0.4   0:00 tpop3d
 1069 root       0   0  1148 1148   804 S       0  0.0  0.4   0:00 tpop3d
 1074 root       0   0  1092 1092   756 S       0  0.0  0.4   0:00 tpop3d
 1078 root       0   0  4568 4568   760 S       0  0.0  1.7   0:20 tpop3d

it never exceeds few megs.

Try to download the latest version, recompile and watch for errors.
You could also try strace'ing to find where the problem lies.

Marcin