Re: Any where from the Run object to find out how much CPU the job is consuming?

2021-03-30 Thread Basil Crow
On Tue, Mar 30, 2021 at 1:21 PM Michael Carter wrote: > > Which of course causes a lot of CPU usage on the master due to the frequent > lookups to the identical username/password. I suppose you have already concluded that the high CPU usage is caused by the abovementioned credential lookups.

Re: Any where from the Run object to find out how much CPU the job is consuming?

2021-03-30 Thread Jesse Glick
This is not really possible. There is https://github.com/jenkinsci/workflow-cps-plugin/blob/f522e783e917bc0aa0513a29684285b710163905/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java#L357-L387 (which is *not* an API you may use from another plugin) but the `run` timing

Re: Any where from the Run object to find out how much CPU the job is consuming?

2021-03-30 Thread Michael Carter
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

Re: Any where from the Run object to find out how much CPU the job is consuming?

2021-03-30 Thread Jesse Glick
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

Any where from the Run object to find out how much CPU the job is consuming?

2021-03-30 Thread Michael Carter
Basically the use case. We've got a few jobs doing: loop { retry(10) { withCredetials { ... some code. that takes about 10ms. or less } } } It's eating up 100% CPU on the master. I suspect we have other(s)/cases of people doing things like this and I'm trying to add a

Re: Maintainers/owners of github.com/jenkinsci/js-libs

2021-03-30 Thread Tom Fennelly
Hey Oleg. Yes, let's put up for adoption anything that should be adopted and I suppose we should delete/remove/deprecate/whatever the ones that are dead. Based on yesterday's permissions PR , it seems like the list is

Re: Maintainers/owners of github.com/jenkinsci/js-libs

2021-03-30 Thread Oleg Nenashev
Hi Tom, Thanks a lot for the update! And what about other components? If you are a sole maintainer, would you like to put them for adoption? Best wishes, Oleg On Mon, Mar 29, 2021, 12:49 Tom Fennelly wrote: > Hi. > > I've not been working on anything related to >

Re: [Github] jenkins-infra alumni team

2021-03-30 Thread 'Olblak' via Jenkins Developers
Hi Everybody, I made few changes to the Jenkins-infra GitHub organization. **jenkins-infra/alumni** I created the alumni team here , feel free to reach out if I put the wrong person there and I'll revert it or if I am missing