Skip to content
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

Memory leak? #373

Open
smurfix opened this issue Sep 17, 2020 · 2 comments
Open

Memory leak? #373

smurfix opened this issue Sep 17, 2020 · 2 comments

Comments

@smurfix
Copy link

smurfix commented Sep 17, 2020

Hi,

akumuli (0.8.80) seems to have a memory leak somewhere in its data retrieval code.

Its total VM size on my system, after reload, is 300 MBytes. After triggering Grafana (which reads a heap of data from last week, nothing fancy) it's 615. Fair enough. However, after reloading the exact same page, which presumably repeats the exact same query, it's 685 MBytes. Another reload takes it to 726, and the reload after that is gets it to 795.

Please fix.

Update: I initially saw this with 0.8.77, but upgrading to .80 didn't change anything.

@Lazin
Copy link
Member

Lazin commented Sep 24, 2020

I'll take a look. Might be system cache behavior. It might prefetch part of the data volume into memory. BTW, what query are you using in Grafana?

@smurfix
Copy link
Author

smurfix commented Sep 25, 2020

Well, it's the same query (or set of queries) every time and the system eventually runs out of memory when I do this, so no, this is memory directly allocated by akumulid.

My graph targets are simple and mostly look like this:

      "targets": [
        {
          "aggregator": "sum",
          "alias": "",
          "currentTagKey": "pos",
          "currentTagValue": "bell",
          "downsampleAggregator": "mean",
          "downsampleFillPolicy": "none",
          "metric": "temp",
          "refId": "A",
          "tags": {
            "set": "outdoor"
          }
        },
        {
          "aggregator": "sum",
          "alias": "Gartenwasser",
          "currentTagKey": "",
          "currentTagValue": "",
          "downsampleAggregator": "mean",
          "downsampleFillPolicy": "none",
          "metric": "flow",
          "refId": "B",
          "tags": {
            "loc": "ug",
            "pos": "garden",
            "type": "sensor"
          }
        }
      ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants