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

Major performance issues on pages with large build queues (100+ items)

      On job pages (http://<jenkins>.com/job/<job name>) that have large build queues, the page loads and handles extremely slow. I have observed this on a machine with 16GB RAM and pretty hefty CPU and reproduced in all major browsers. On Chrome, the task manager shows a consistent > 100% CPU usage on the tab that has the page open.

      I have verified that the issue has nothing to do with loading assets from the server. A quick profile [1] of the code execution showed that lots of time is spent in functions "getclientWidth" and "getClientHeight". Looks like these are getting called from "getElementOverflowParams()" in hudson-behavior.js. I believe this is a problem resulting from commit cb9036 [2] from 15 days ago, "Single/Multiline Build History", wherein this code is introduced.

      The problem seems to be that there are way too many event handlers listening to window resize events. This is causing the page to essentially hang and be unusable.

      [1] http://i.imgur.com/Rr29SnU.png
      [2] https://github.com/jenkinsci/jenkins/commit/cb9036c45527223525cc1b48020a8ed777020c1a

          [JENKINS-25988] Major performance issues on pages with large build queues (100+ items)

          Daniel Beck added a comment -

          Workaround is of course to collapse the build queue by clicking the '-'.

          Daniel Beck added a comment - Workaround is of course to collapse the build queue by clicking the '-'.

            Unassigned Unassigned
            ryanhsu Ryan Hsu
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: