Solved BIND/named 9.14.6 cannot start due to memory

After upgrading dns/bind914 from 9.14.3 to 9.14.6 it does not start anymore.

Code:
mem.c:710: fatal error:
malloc failed: Cannot allocate memory

While 9.14.3 was running stable with about 100 MB memory-use, 9.14.6 grows indefinitely during startup, reaches some GB size and hits the limit.
All compilation parameters are identical.

This happens before the thing starts to do any activity (no entries in the logfiles). What's going on there?
 
Thanks to the helpful support from ISC Gitlab, this problem was identified.

Beginning with version 9.14.4, BIND/named creates additional statistics. These statistics, if enabled, appear to amount to 1MB per entity (zone). So, if one uses some simple ad-blocker using thousands of zones, the memory size (VSZ) reaches multiple GB.
.
The collection of these statistics can be controlled with the zone-statistics option, globally or per zone. (See the manual for details.)

See also: https://gitlab.isc.org/isc-projects/bind9/issues/1179
 
Back
Top