... | ... | @@ -93,6 +93,18 @@ INUSE: 13.1MiB == 13.1MiB |
|
|
MALLOCED: 13.3MiB == 13.3MiB
|
|
|
```
|
|
|
|
|
|
#### Periodic measurement
|
|
|
In case BIND's memory usage gets out of hand gradually it's best to capture statistics over longer period of time. This time series will allow us to determine which component is allocating more memory over time.
|
|
|
|
|
|
A simple bash snippet is sufficient:
|
|
|
```shell
|
|
|
while true
|
|
|
do
|
|
|
curl http://127.0.0.1:8080/json/v1 > stats-$(date -Iseconds).json
|
|
|
sleep 60 # modify sampling period as needed
|
|
|
done
|
|
|
```
|
|
|
|
|
|
### Measuring Memory Externally
|
|
|
|
|
|
The rule of thumb is
|
... | ... | |