Setting the underlying platform job priority while running on Linux

12 views
Skip to first unread message

Randall Becker

unread,
Dec 5, 2018, 9:40:53 AM12/5/18
to Jenkins Users
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

Randall Becker

unread,
Dec 5, 2018, 2:44:43 PM12/5/18
to Jenkins Users
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.
Reply all
Reply to author
Forward
0 new messages