Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-27650

Page loads slow with hundreds of throttled builds in queue

      When there are hundreds of throttled builds in the queue, page loads increase by an order of magnitude.

      Steps to reproduce:

      1. Run Jenkins 1.580.2 and latest throttle-concurrent-builds plugin
      2. Create a matrix job with 200 combinations (attached)
      3. In the same job, select "Throttle Concurrent Builds" with a maximum of 7 builds throttled as part of a category called 'semaphore'
      4. Set number of executors on the 'master' queue to 200
      5. Run the job. There should only be 7 builds running due to the throttling

      Page load times will increase by an order of magnitude – I observed 10 seconds from

      time curl http://localhost:8080/jenkins/ajaxBuildQueue

      If you remove the throttling in the job configuration, the page load times will be under 50 ms.

          [JENKINS-27650] Page loads slow with hundreds of throttled builds in queue

          Ryan Campbell created issue -
          Oleg Nenashev made changes -
          Link New: This issue is related to JENKINS-20046 [ JENKINS-20046 ]
          Ryan Campbell made changes -
          Attachment New: threaddump.txt [ 28908 ]
          Jesse Glick made changes -
          Assignee Original: Oleg Nenashev [ oleg_nenashev ] New: Jesse Glick [ jglick ]
          Jesse Glick made changes -
          Description Original: When there are hundreds of throttled builds in the queue, page loads increase by an order of magnitude.

          Steps to reproduce:

          # Run Jenkins 1.580.2 and latest throttle-concurrent-builds plugin
          # Create a matrix job with 200 combinations (attached)
          # In the same job, select "Throttle Concurrent Builds" with a maximum of 7 builds throttled as part of a category called 'semaphore'
          # Set number of executors on the 'master' queue to 200
          # Run the job. There should only be 7 builds running due to the throttling

          Page load times will increase by an order of magnitude -- I observed 10 seconds from {{{time curl http://localhost:8080/jenkins/ajaxBuildQueue}}}

          If you remove the throttling in the job configuration, the page load times will be under 50 ms.
          New: When there are hundreds of throttled builds in the queue, page loads increase by an order of magnitude.

          Steps to reproduce:

          # Run Jenkins 1.580.2 and latest throttle-concurrent-builds plugin
          # Create a matrix job with 200 combinations (attached)
          # In the same job, select "Throttle Concurrent Builds" with a maximum of 7 builds throttled as part of a category called 'semaphore'
          # Set number of executors on the 'master' queue to 200
          # Run the job. There should only be 7 builds running due to the throttling

          Page load times will increase by an order of magnitude -- I observed 10 seconds from {code:none}time curl http://localhost:8080/jenkins/ajaxBuildQueue{code}

          If you remove the throttling in the job configuration, the page load times will be under 50 ms.
          Ryan Campbell made changes -
          Attachment New: config.xml [ 29000 ]
          Jesse Glick made changes -
          Labels Original: performance New: performance queue
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "Docker demo to reproduce (Web Link)" [ 12302 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "PR 27 (Web Link)" [ 12400 ]
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-19623 [ JENKINS-19623 ]

            Unassigned Unassigned
            recampbell Ryan Campbell
            Votes:
            12 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated: