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

Make the lifetime of queue items cache configurable

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      jenkins-1.509.3
    • Similar Issues:

      Description

      In the Jenkins installations with many executors queue becomes a critical resource. When many executors / scheduler try to take the job at the same time, queue visualization may lock the web interface:

      "Handling POST /ajaxBuildQueue : RequestHandlerThread180" daemon prio=10 tid=0x00002aaacccdc000 nid=0x378c waiting for monitor entry [0x0000000059b2c000]
      java.lang.Thread.State: BLOCKED (on object monitor)
      at hudson.model.Queue.getItems(Queue.java:641)

      • waiting to lock <0x0000000680060bf0> (a hudson.model.Queue)
        at hudson.model.Queue$CachedItemList.get(Queue.java:196)
        at hudson.model.Queue.getApproximateItemsQuickly(Queue.java:671)
        at hudson.model.View.getApproximateQueueItemsQuickly(View.java:457)
        at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source)

      getApproximateItemsQuickly() updates its cache every 1 second. I propose to make this time configurable

        Attachments

          Issue Links

            Activity

            oleg_nenashev Oleg Nenashev created issue -
            oleg_nenashev Oleg Nenashev made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-20046 [ JENKINS-20046 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 151208 ] JNJira + In-Review [ 193831 ]

              People

              Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              oleg_nenashev Oleg Nenashev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: