Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] memory consumption

2008-10-23 by Benoit Branciard

Petar Bogdanovic a \ufffdcrit :
> Hi,
> 
> I just did some stress-testing on milter-greylist in order to test its
> memory consumption and it seems that there are some leaks to be found.
> 

Yes, milter-greylist has some memory leaks, at least with some 
compilation options.

I have set up a cron to restart it every time it hits the 1GB VSZ limit. 
This orrcurs at various rate depending on inbound traffic but roughly at 
least once a week. Once restarted (and database reloaded), VSZ drops to 
about 100MB, so the tuple database is not the reason.

I'm on linux Debian (Sarge with Etch libc6/kernel) and configure 
milter-greylist 4.0 (with some additional patches, but this didn't 
impact the memory leak problem) with:
./configure --prefix=/usr/local --bindir=/usr/local/sbin 
--sysconfdir=/etc --localstatedir=/var/lib --enable-dnsrbl --with-libspf2_
10=/usr/lib --with-conffile=/etc/mail/greylist.conf 
--with-dumpfile=/var/lib/milter-greylist/greylist.db 
--with-libcurl=/usr/lib

Since I have this "automatic diet" cron job and the machine has plenty 
of RAM, I never worried too much about this memory problem, but it still 
exists...


-- 
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.