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

BlueOcean causes controller slowness due to User Lookup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • blueocean-plugin
    • None

      When troubleshooting a very active controller (running many concurrent builds), we noticed extreme slowness caused by user lookup:

      194339msec elapsed in Handling GET /blue/rest/organizations/jenkins/pipelines/myJob/runs/1234/ from 123.123.123.123 : Jetty (winstone)-7882153
          java.base@11.0.20/jdk.internal.misc.Unsafe.park(Native Method)
          java.base@11.0.20/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
          java.base@11.0.20/java.util.concurrent.CompletableFuture$Signaller.block(CompletableFuture.java:1796)
          java.base@11.0.20/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3128)
          java.base@11.0.20/java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:1823)
          java.base@11.0.20/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1998)
          platform/java.net.http@11.0.20/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:541)
          platform/java.net.http@11.0.20/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:119)
          com.cloudbees.opscenter.client.plugin.OperationsCenterRootAction.invokeServerAction(OperationsCenterRootAction.java:489)
          com.cloudbees.opscenter.client.plugin.OperationsCenterSsoSecurityRealm.loadUserByUsername2(OperationsCenterSsoSecurityRealm.java:104)
          jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:170)
          jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:159)
          com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4868)
          com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3533)
          com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2282)
          com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2159)
          com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2049)
          com.google.common.cache.LocalCache.get(LocalCache.java:3966)
          com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4863)
          jenkins.security.UserDetailsCache.loadUserByUsername(UserDetailsCache.java:127)
          hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(User.java:1261)
          hudson.model.User$CanonicalIdResolver.resolve(User.java:1202)
          hudson.model.User.get(User.java:530)
          hudson.plugins.git.GitChangeSet.getUser(GitChangeSet.java:416)
          hudson.plugins.git.GitChangeSet.findOrCreateUser(GitChangeSet.java:488)
          hudson.plugins.git.GitChangeSet.getAuthor(GitChangeSet.java:587)
          io.jenkins.blueocean.service.embedded.rest.ChangeSetResource.getAuthor(ChangeSetResource.java:48)
      [...]
      

      Note: A similar problems was dealt with in Stage View 3 years ago: https://issues.jenkins.io/browse/JENKINS-63854

            Unassigned Unassigned
            allan_burdajewicz Allan BURDAJEWICZ
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: