Delayed zone deletion
When zones are removed from the configuration, the process to release the memory held by the deleted zones could take even minute or more if the server is busy.
This has been (partially?) fixed in main
which doesn't exhibit the behaviour, but it's true for 9.16 and 9.18. This can be reproduced by doing something like this:
- add zone <n+1> to
zones.conf
- del zone to
zones.conf
- run
rndc reconfig
- repeat
It's now roughly at dom170883.example
and the server consumes 3.2GB of memory.
This is not normal mode of operation, but in the environment that provides short-lived domains for containers, it's very much plausible.
I've had a jeprof
output with symbols, but alas, I've deleted the binary, so you need to trust me that the 99% is all dns_zone_create()
: