Use of "statistics-channel" appears to cause a memory leak.
Summary
Telegraf pointing at bind 9.11 (or 9.16) observes a continuous memory increase.
BIND version used
BIND 9.11.26 (Extended Support Version) id:3ff8620 running on FreeBSD amd64 12.2-RELEASE-p1 FreeBSD 12.2-RELEASE-p1 GENERIC
The same applies with 9.16.9/10
Steps to reproduce
Enable statistics channels. In this case: statistics-channels { inet 10.0.0.8 port 8053 allow { 10.0.0.0/24; }; inet 127.0.0.1 port 8053 allow { 127.0.0.1; }; };
Add telegraf to the mix (as per https://github.com/influxdata/telegraf/blob/release-1.14/plugins/inputs/bind/README.md )
[inputs.bind] urls = ["http://localhost:8053/xml/v3"] gather_memory_contexts = false gather_views = true
(this leak appears independent of /xml/v3 or /json/v1 )
What is the current bug behavior?
Memory grows at about 230 kB / minute with 9.11 I think it was around 2 MB / minute with 9.16
9.16.9, 6 days, grew to 19 GB. 9.16.9, 7 days, grew to 22 GB. 9.16.10, 4 days, grew to 11 GB. 9.11.26, 4 days, grew to 2 GB.
It has not yet run to the point of crashing.
Accessing the web interface version causes an approximate 2MB jump in "Total Memory" But that goes away after a minute or so.
What is the expected correct behavior?
To be able to run for weeks without growing endlessly.
Relevant configuration files
Relevant logs and/or screenshots
when run with "-m report" memstats file contains:
Dump of all outstanding memory allocations: None.
Possible fixes
The code, while awesome, is beyond my ability to grok.