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

Poor performance with authenticated user

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • core

      Main observation is very poor UI performance when logged into the system. Interestingly, when logged in and browsing anonymously, the system responds immediately through the UI – so it appears to be an issue with logged in users.

      Other observations:

      • Using VisualVM, there appears to be a method run that uses a significant amount of CPU time with every UI interaction: jenkins.model.lazy.AbstractLazyLoadRunMap.search(). Unauthenticated users do not impact this method repeatedly.
      • Load average and overall system resources seem okay

      Things we've tried with (apparently) no effect:

      • Updating Jenkins to 2.60.1-1 (currently at 2.46.2)
      • Switching to alternate authentication mechanisms: LDAP, local UNIX user, etc. (currently Active Directory)
      • Remove user authorization by changing authorization to 'Logged-in users can do anything' (currently 'Matrix-based security')
      • Enabling tcp_tw_recycle and tcp_tw_reuse kernel params (to address large number of processes in TIME_WAIT state)
      • Updating garbage collection flags for the JVM:
        • JAVA_GC_LOGGING="Xloggc:/var/lib/jenkins/gc%t.log -XX:NumberOfGCLogFiles=5 -XX:+UseGCLogFileRotation -XX:GCLogFileSize=20m -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCCause -XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy"
        • JAVA_GC_TUNING="-XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication -XX:+UnlockDiagnosticVMOptions -XX:G1SummarizeRSetStatsPeriod=1 -XX:MetaspaceSize=1g -XX:+AlwaysPreTouch"

            Unassigned Unassigned
            mjmccormac Michael McCormac
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: