-
Bug
-
Resolution: Unresolved
-
Major
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
Workaround is of course to collapse the build queue by clicking the '-'.