[tpop3d-discuss] Memory leak?

Marc Lewis marc at blarg.net
Tue, 7 May 2002 15:46:27 -0700


We've been running tpop3d for about a week now, and find it to be
excellent piece of software.

It has crashed on us twice, though, and I believe it may be because of a
memory leak.

After starting it up, I see the following (about 40 mail checks have
occurred):

# ps auxw | grep tpop3d
root     31761  1.3  0.2  4532 2128 ?        S    15:29   0:00 tpop3d
xxxxx    31804  0.1  0.1  4336 1984 ?        S    15:29   0:00 tpop3d
xxxxxxx  31891  0.0  0.2  4488 2112 ?        S    15:29   0:00 tpop3d
xxxxxxxx 31913  0.0  0.2  4520 2144 ?        S    15:29   0:00 tpop3d


This one was started yesterday.  It made it to this point before it was
killed and restarted, which yielded the ps results from above.

# ps auxw | grep tpop3d
root     26088  4.3 46.1 476564 474164 ?     S    May06  55:45 tpop3d
xxxxx    22958  0.0 46.0 475264 472908 ?     S    15:00   0:00 tpop3d
xxxx     23738  1.0 46.1 476568 474192 ?     S    15:02   0:00 tpop3d
xxxxxx   23744  0.0 46.1 476564 474188 ?     S    15:02   0:00 tpop3d


The setup is for Maildir format.

I understand that tpop3d makes heavy use of mmap, but it doesn't seem to be
munmaping them correctly in Maildir mode, and the parent process keeps
growing as well, which has me concerned.

For completeness: The Maildir's are all over NFS, the systems are RedHat
7.2 with all of the updates from RH applied, the MTA is Postfix 1.1.7, and
the local delivery agent is procmail 3.21.  Authentication is done via PAM
with the nss_ldap module, the mail servers run their own slaved LDAP
databases using OpenLDAP 2.0.21.

Suggestions/comments?

Thanks.

 - Marc

-- 
Marc Lewis
Network Administrator
Blarg! Online Services, Inc.
http://www.blarg.net/~marc