Setting the underlying platform job priority while running on Linux

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Setting the underlying platform job priority while running on Linux

Randall Becker
I have a situation where the JVM running remoting.jar needs to run at a lower system priority than the default for the user. Basically, in Linux terms, I would like to run the equivalent of 'nice' as part of either the job or preferably the Node's agent startup. I cannot allocate a dedicated machine for the builds and I've got users whining about the load.

Any ideas?

Thanks,
Randall

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/78725f8f-2e43-4a23-9401-39878e400b82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Setting the underlying platform job priority while running on Linux

Randall Becker
FWIW, I add the following Prefix under Advanced in the node definition: nice nice sh -c '
and ' as a suffix. That seemed to do the trick and slow down the whining.

On Wednesday, December 5, 2018 at 9:40:53 AM UTC-5, Randall Becker wrote:
I have a situation where the JVM running remoting.jar needs to run at a lower system priority than the default for the user. Basically, in Linux terms, I would like to run the equivalent of 'nice' as part of either the job or preferably the Node's agent startup. I cannot allocate a dedicated machine for the builds and I've got users whining about the load.

Any ideas?

Thanks,
Randall

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6b9958fc-a7e5-4737-b05f-9bc0d76bd515%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.