Guess I should have added more context.
I have users adding this type of code to their pipeline scripts.
loop {
retry(10) {
withCredetials {
... some code. that takes about 10ms. or less
}
}
}
Which of course causes a lot of CPU usage on the master due to the frequent
lookups to the identical username/password. What I'm looking is there a
way from inside Jenkins https://javadoc.jenkins-ci.org/hudson/model/Run.html to
get at how much CPU/Memory the Pipeline Job is used during it's run?
I want to write a Jenkins Plugin (Like an Action Badge or something) to
report on it to screen and save to an external audit DB. But I first must
get the resource usage from inside Jenkins somehow.
Hence the question can I get to it somehow from
https://javadoc.jenkins-ci.org/hudson/model/Run.html or do I have to hook
into the onStarted/onCompleted triggers with some sort of monitor?
On Tuesday, March 30, 2021 at 3:38:03 PM UTC-4 Jesse wrote:
> Run `jstack`? Not sure what this plugin is or how it relates to diagnosing
> high CPU usage.
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/f469a2b6-18d5-4351-bd4a-19b642479647n%40googlegroups.com.