Skip to content

Memory leak introduced by PR #9430 #9513

@xqqp

Description

@xqqp

Describe the bug

I noticed that with version 25 Dgraph allocated memory very quickly. With version 24 Dgraph's memory grows 20 GiB with a requests I'm doing, while with version 25 it grows past 40 GiB. My requests only query Dgraph, no mutations happen.

It chased the bug down to PR #9430, in v25-preview6. I'm not sure, but to me it seems the new cache never gets cleared, so this might be the reason for the memory leak.

Environment

  • OS: Linux, Docker
  • Dgo client v250
  • Version v25.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions