-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
otel cpu utilization is high #25815
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Even if I turn off the indicator, this part of the logic is still running and still consumes a lot of cpu |
Hello @strive-after, can you post the configuration you're using? |
Can you expand on what you mean by "turn off the indicator"? |
@strive-after, thanks for reporting the issue. I submitted #26474 to not collect the data from the host if the metric is disabled. I don't see anything else we can do on the collector side, the issue should probably go to gopsutil repo |
/label -needs-triage |
@dmitryax How can one effectively manage the number of concurrent threads at regular intervals, typically synchronized with the host metric collection period, where these metrics are gathered and may lead to CPU spikes? When dealing with small IoT embedded devices, it would be highly beneficial to smoothen the performance by avoiding simultaneous execution and opting for a more serialized approach. Additionally, in cases where the central computing unit (CCU) is unavailable due to system throttling, it's crucial for the collector to maintain proper behavior, ensuring it doesn't end up in states where recovery is impossible or where it accumulates even more threads instead of reducing them. To enhance resource efficiency in general, it would be advantageous to enable the collector to respond to external signals and adjust its resource utilization accordingly. |
Component(s)
cmd/otelcontribcol, receiver/hostmetrics
What happened?
Deploying otel on the four-tier proxy server to collect hostmetrics data will cause the CPU to be extremely high. After closing the network collection, it will return to normal. Through the flame graph query, it is found that gopsutil is used. This will scan files under the proc directory. The more links, the more CPU. The more resources are occupied, see if it can be adjusted. At present, there is no such problem in falcon using ss
Collector version
0.61.x
The text was updated successfully, but these errors were encountered: