-
Notifications
You must be signed in to change notification settings - Fork 974
Closed
Milestone
Description
- Program: dnsdist
- Issue type: Bug report
Short description
After a while dnsdist provides negative real-memory-usage if queried over built-in webserver.
Environment
- Operating system: SLES12-SP2
- Software version: dnsdist 1.2.0
- Software source: self compiled
Steps to reproduce
Negative value after about 3 days run time:
curl --silent -H 'X-API-Key: xxxxxx' http://127.0.0.1:7070/api/v1/servers/localhost/statistics | jsonpretty | grep -A2 real-memory-usage
"name": "real-memory-usage",
"type": "StatisticItem",
"value": -1715232768
While dumpStats() shows still the correct value:
dnsdist -e "dumpStats()" | grep real-memory-usage
empty-queries 19799 real-memory-usage 6874710016
Expected behaviour
Correct value for real-memory-usage metric
Actual behaviour
Wrong and negative value