inspectIT / inspectit-ocelot

inspectIT Ocelot - Java agent for collecting application performance, tracing and behavior data
http://www.inspectit.rocks/
Apache License 2.0
204 stars 69 forks source link

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

Open danipaniii opened 1 year ago

danipaniii commented 1 year ago

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.