Possible memory leak on BIND 9.10.1-P1 running on FreeBSD 10.1-RELEASE-p4 - part 2

J. Thomsen list at jth.net
Tue Jan 27 10:36:55 UTC 2015


On Tue, 27 Jan 2015 11:16:04 +0530,Mukund Sivaraman <muks at isc.org> wrote:


>Meanwhile, please can you enable statistics-channels in named.conf and
>send us a dump of the XML statistics along with process sizes reported
>by ps when named grows very large?
>

I run the small script below every 5 minutes in a cron job

The result can be seen at http://ns4.jth.net/bind

There is no extreme memory leak running since Jan. 7th, but memory usage is slowly increasing from
70 MB till now 161 MB.
In any case using 161 MB RAM serving 623 small authoritative zones and rarely any recursive lookups
seems to me wildly out of proportion.
Disk space of zone files is 5,4 MB.
The developers of BIND ought to revisit the memory usage of BIND.   


#!/bin/sh
# extracts the memory usage of named into a file

touch /var/www/html/jth.net/bind/bind_rss_history.txt
RSS=`ps -aux | awk '/^named.*named/{print $6 " " $5}'`
NOW=`date "+%Y-%m-%d %H:%M:%S"`
echo "$NOW $RSS" | awk '{printf "%10s%10s RSS %11sKb VSZ %11sKb\n",$1,$2,$3,$4}' >>
/var/www/html/jth.net/bind/bind_rss_history.txt
GET "http://127.0.0.1:8053" >/var/www/html/jth.net/bind/s`date +%F-%H-%M.xml`
exit 0

In named.conf the configuration is


statistics-channels {
  inet *  port 8053 allow { verytrusted; };
  inet ::  port 8053 allow { verytrusted; };
};

options {

        zone-statistics yes;
};
 
- Jørgen Thomsen



More information about the bind-users mailing list