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

bug: infrahub-server memory usage keeps increasing over time #6021

Open
wvandeun opened this issue Mar 14, 2025 · 0 comments
Open

bug: infrahub-server memory usage keeps increasing over time #6021

wvandeun opened this issue Mar 14, 2025 · 0 comments
Assignees
Labels
group/backend Issue related to the backend (API Server, Git Agent) priority/2 This issue stalls work on the project or its dependents, it's a blocker for a release state/planned This issue is planned to be worked on in an upcoming release. type/bug Something isn't working as expected

Comments

@wvandeun
Copy link
Contributor

wvandeun commented Mar 14, 2025

Component

API Server / GraphQL

Infrahub version

1.1.8

Current Behavior

The amount of memory consumed by the infrahub-server seems to increase over time, and it never comes back down again.

For example, see this screenshot of a graph that plots memory consumption over time:

Image

Expected Behavior

Memory consumption should fluctuate based on the usage of the worker.

Steps to Reproduce

  • Start instance of Infrahub
  • Create a branch
  • Run a generator
  • Delete the branch
  • Repeat the above process

With every branch you create and generator you run, you will see the memory consumption increase until you reach the hard limit that you set or when you go OOM.

The only way to bring memory consumption back down is to restart the server.

Additional Information

Workaround: We can restart infrahub-server to bring memory usage back down.

@wvandeun wvandeun added the type/bug Something isn't working as expected label Mar 14, 2025
@wvandeun wvandeun changed the title bug: task-worker consumes more and more memory over time bug: task-worker memory usage keeps increasing over time Mar 14, 2025
@exalate-issue-sync exalate-issue-sync bot added the priority/2 This issue stalls work on the project or its dependents, it's a blocker for a release label Mar 14, 2025
@wvandeun wvandeun changed the title bug: task-worker memory usage keeps increasing over time bug: infrahub-server memory usage keeps increasing over time Mar 17, 2025
@dgarros dgarros added the group/backend Issue related to the backend (API Server, Git Agent) label Mar 20, 2025
@exalate-issue-sync exalate-issue-sync bot added the state/planned This issue is planned to be worked on in an upcoming release. label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent) priority/2 This issue stalls work on the project or its dependents, it's a blocker for a release state/planned This issue is planned to be worked on in an upcoming release. type/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants