Skip to content

[Bug] - Process CPU usage spikes when the agent config changed #1577

@danipaniii

Description

@danipaniii

Describe the bug
There were reports that when the log-preloading is activated the CPU usage goes up to over 25 % in comparison to 3% when the log-preloading is deactivated.
While investigating this, I found out that whenever the agent config gets changed there is a short CPU usage spike of around 25%.

To Reproduce
Steps to reproduce the behavior:

  1. Start a config server + agent + sample program to attach to
  2. Open e.g. Grafana, Prometheus Graph or other tool to visualize the metrics
  3. After startup and seeing that the overall CPU usage is settling down, change the config
  4. When the config got fetched you can observe the CPU usage spikes.

Expected behavior
Fetching the config, shouldn't result in a CPU usage spike.

Additional context
Unfortunately I don't know whether in the reports it was meant, that the CPU usage stays constantly high after activating the log-preloading or if it was just a short CPU usage spike.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions