Configuring Max Polling Threads

Issue

  • A lot of SCM polling threads
  • Increase number of SCM polling threads
  • Polling not run in job

Environment

  • CloudBees Jenkins Enterprise
  • Jenkins
  • CloudBees Jenkins Operations Center

Resolution

In Jenkins there is an option in Manage Jenkins > Configure System which allows users to manually set the number of polling threads to any number.

This option is only available to Jenkins installations with over 10 jobs which all are using polling.
After 10 jobs are configured for SCM polling, then this option becomes available.

Sometimes Jenkins will not poll all jobs because there is polling happening in other jobs (or polling is stuck).
If you encounter this issue it is best to increase the total number of polling threads to a higher number.
If polling operations are still stuck then perform a thread dump (kill -3 $PID or jstack $PID) and provide CloudBees support with this information.

Polling can be triggered manually by POSTing to $JENKINS_URL/job/JOB_NAME/polling.
Navigating to this via a browser will provide an option to post to trigger the polling manually.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.