I have the Prometheus plugin installed in my Jenkins instance and recently, after re-deploying Jenkins with the most recent plugin versions (other plugins) the Prometheus plugin started to spike the CPU usage to 100%, even when no builds are running. This causes Jenkins to be unresponsive a lot of times:
Hello @joaoamaro and welcome to this community
How did you spot that it’s the Prometheus plugin that uses the CPU the most?
Did you install a metric plugin like Monitoring, or are you monitoring with htop or any other tool?
hi @poddingue. Thank you!
Yes, I have the Monitoring plugin installed. The image in my question is from that plugin, and this one as well where you can see the CPU usage when the Prometheus plugin is installed:
Thanks for the feedback.
You could maybe use a tool such as jps to find which thread is using all the CPU, and then maybe post a new issue on Prometheus’s GitHub repo.