New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnsdist: negative real-memory-usage metric #6211

Closed
paddg opened this Issue Jan 22, 2018 · 0 comments

Comments

Projects
None yet
3 participants
@paddg
Contributor

paddg commented Jan 22, 2018

  • 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

Other information

Usecase

Description

@rgacogne rgacogne added this to the dnsdist-1.3.0 milestone Feb 12, 2018

@rgacogne rgacogne referenced this issue Mar 27, 2018

Merged

dnsdist: Use double instead of int in the API #6401

2 of 6 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment