-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[agentbeat/linux] shirou/gopsutil causes high CPU usage #39253
Comments
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
Thx @florianl for your feedback. |
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
It is hard to compare the standalone |
Interesting, we haven't changed the number of processes (and in theory the work done by those processes), only the executable used to implement those processes. |
As @cmacknz please compare this to native to |
agentbeat
uses shirou/gopsutil to fetch network information.When testing a current release, the following profile from
agentbeat
was collected.From this on CPU profile,
agentbeat
spends most of its CPU resources on traversing/proc/net
and/proc/<PID>/net
in order to read files to fetch networking information.Long standing issues on shirou/gopsutil to address performance issues when collecting network information:
net.Connections("all")
causes high CPU usage on server with 120K connections shirou/gopsutil#784The text was updated successfully, but these errors were encountered: