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

Optimize TagCloud size calculation

    Details

    • Similar Issues:

      Description

      On large enough instance, calculating weights for TagCloud can take significant amount of the time (~ 90% of time) needed to render /computer/XXX page.

      Handling GET /hudson/computer/XXX/ : ajp-127.0.0.1-8009-108 Computer/index.jelly
      java.util.ArrayList.size(ArrayList.java:177)
      java.util.AbstractList$Itr.hasNext(AbstractList.java:339)
      hudson.Util.filter(Util.java:103)
      hudson.Util.filter(Util.java:115)
      hudson.matrix.AxisList.subList(AxisList.java:66)
      hudson.matrix.MatrixConfiguration.getAssignedLabel(MatrixConfiguration.java:301)
      hudson.model.Label.getTiedJobCount(Label.java:392)
      hudson.model.Node$1.weight(Node.java:234)
      hudson.model.Node$1.weight(Node.java:232)
      hudson.util.TagCloud.<init>(TagCloud.java:73)
      hudson.model.Node.getLabelCloud(Node.java:232)
      sun.reflect.GeneratedMethodAccessor123002.invoke(Unknown Source)
      

        Attachments

          Issue Links

            Activity

            olivergondza Oliver Gondža created issue -
            olivergondza Oliver Gondža made changes -
            Field Original Value New Value
            Description On large enough instance, calculating weights for {{TagCloud}} can take significant amount of the time needed to render {{/computer/XXX}} page.

            {noformat}
            Handling GET /hudson/computer/XXX/ : ajp-127.0.0.1-8009-108 Computer/index.jelly
            java.util.ArrayList.size(ArrayList.java:177)
            java.util.AbstractList$Itr.hasNext(AbstractList.java:339)
            hudson.Util.filter(Util.java:103)
            hudson.Util.filter(Util.java:115)
            hudson.matrix.AxisList.subList(AxisList.java:66)
            hudson.matrix.MatrixConfiguration.getAssignedLabel(MatrixConfiguration.java:301)
            hudson.model.Label.getTiedJobCount(Label.java:392)
            hudson.model.Node$1.weight(Node.java:234)
            hudson.model.Node$1.weight(Node.java:232)
            hudson.util.TagCloud.<init>(TagCloud.java:73)
            hudson.model.Node.getLabelCloud(Node.java:232)
            sun.reflect.GeneratedMethodAccessor123002.invoke(Unknown Source)
            {noformat}
            On large enough instance, calculating weights for {{TagCloud}} can take significant amount of the time (~ 90% of time) needed to render {{/computer/XXX}} page.

            {noformat}
            Handling GET /hudson/computer/XXX/ : ajp-127.0.0.1-8009-108 Computer/index.jelly
            java.util.ArrayList.size(ArrayList.java:177)
            java.util.AbstractList$Itr.hasNext(AbstractList.java:339)
            hudson.Util.filter(Util.java:103)
            hudson.Util.filter(Util.java:115)
            hudson.matrix.AxisList.subList(AxisList.java:66)
            hudson.matrix.MatrixConfiguration.getAssignedLabel(MatrixConfiguration.java:301)
            hudson.model.Label.getTiedJobCount(Label.java:392)
            hudson.model.Node$1.weight(Node.java:234)
            hudson.model.Node$1.weight(Node.java:232)
            hudson.util.TagCloud.<init>(TagCloud.java:73)
            hudson.model.Node.getLabelCloud(Node.java:232)
            sun.reflect.GeneratedMethodAccessor123002.invoke(Unknown Source)
            {noformat}
            olivergondza Oliver Gondža made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            olivergondza Oliver Gondža made changes -
            Remote Link This issue links to "PR #1843 (Web Link)" [ 13166 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            olivergondza Oliver Gondža made changes -
            Labels performance lts-candidate performance
            olivergondza Oliver Gondža made changes -
            Labels lts-candidate performance 1.625.2-fixed performance
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 165823 ] JNJira + In-Review [ 197824 ]

              People

              • Assignee:
                olivergondza Oliver Gondža
                Reporter:
                olivergondza Oliver Gondža
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: