Le mar. 16/02/2010 à 15:12, Dietmar Rieder a écrit :
>
>
> Hi,
>
> we are running milter-greylist-4.2.3 on Solaris 10 x86, it works great
> so far, but I'm a little concerned by its memory consumption. Right
> after starting the service it uses < 30Mb of RAM but after running it
> about 48h it uses already ~1Gb of RAM.
Here is a bad solution for milter-greylist under Solaris 10.
The above ksh script launched by cron every 15 minutes.
Why milter-greylist doesn't free memory under Solaris ?
Same bug under Linux and BSD ?
==============
#!/bin/ksh
export PATH=/usr/bin:/usr/sbin
maxsize=1048576 # 1 Go
#maxsize=2097152 # 2 Go
#maxsize=4194304 # 4 Go
function psmgl
{
ps -eo vsz,rss,comm | fgrep milter-greylist
}
if pgrep -u smmsp milter-greylist > /dev/null
then
psmgl | read vsz rss comm etime
if (( $vsz >= $maxsize ))
then
(psmgl ; ps -fely ; swap -s; df -h ) | \
mailx -s "Restart greycheck" root
/etc/init.d/greymilter stop
sleep 10
/etc/init.d/greymilter start
logmsg="milter-greylist restarted (too big)"
logger -t greycheck -p mail.notice -i "$logmsg"
fi
else
( ps -fely ; swap -s; df -h ) | mailx -s "Start greycheck" root
/etc/init.d/greymilter start
logmsg="milter-greylist started (not running)"
logger -t greycheck -p mail.notice -i "$logmsg"
fi
==================
>
> Is this normal?
> Is there something that could be done to limit the memory consumption?
>
> Here is some additional information:
>
> The greylist.db is about 14Mb and gets dumped every 15 minutes.
>
> We used the following configure option for building the package.
> ./configure --enable-dnsrbl --sysconfdir=/etc/mail --with-user=smmsp
>
> The milter is used together with sendmail-8.14.4 and linked against
> its
> libmilter.
>
> I hope someone can help us with this issue, and please let me non if
> there is more information that I can provide...
>
> Thanks
> Didi
>
>
>
>
>
--
Christian Pélissier
Office National d'Études et de Recherches Aérospatiales
BP 72 92322 Chatillon
Tel: 33 1 46 73 44 19, Fax: 33 1 46 73 41 50Message
Re: [milter-greylist] memory consumption
2010-02-16 by Christian Pélissier
Attachments
- No local attachments were found for this message.