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

cgroup v1 metrics waste memory on excessive calls to isCgroupNSPrivate #182

Open
swiatekm opened this issue Oct 18, 2024 · 0 comments
Open
Labels
Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Comments

@swiatekm
Copy link

swiatekm commented Oct 18, 2024

I was investigating memory consumption of the metricbeat system metrics in Kubernetes, and saw the following heap profile in a cluster using cgroup v1:

Image

These calls happen in a loop here, and look like they can be safely moved out of it. In fact, this call checks the running binary's cgroup, so we should be able to do it once per Fetch, rather than once per target PID.
profile.pb.gz

@cmacknz cmacknz added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

No branches or pull requests

2 participants