inspectit-ocelot icon indicating copy to clipboard operation
inspectit-ocelot copied to clipboard

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

Open danipaniii opened this issue 2 years ago • 0 comments

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.

danipaniii avatar Feb 16 '23 15:02 danipaniii