• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Jenkins 1.459, Oracle JDK 1.7, Windows XP

      In "Manage Jenkins", the plugin manager (aka update center) is rather slow. Slow is about 3 to 6 seconds on my windows laptop.
      The http requests of the plugin manager are mostly the slowest of all, as can be seen in the joined screenshot of the monitoring plugin.
      The screenshot also shows that those http requests have a high cpu usage.

      The cause of the issue is that for each plugin, the UpdateSite.getPlugin(String) and getData() methods read and parse all the plugins data from the "updates/default.json" file each time.
      So the more plugins are available, the slower it is.

      I will submit a pull request.

          [JENKINS-13454] Optimize the plugin manager

          evernat added a comment -

          The pull request is at:
          https://github.com/jenkinsci/jenkins/pull/441

          It will reduce the execution time of the http requests from several seconds to around 100 ms (on my windows laptop).

          evernat added a comment - The pull request is at: https://github.com/jenkinsci/jenkins/pull/441 It will reduce the execution time of the http requests from several seconds to around 100 ms (on my windows laptop).

          Code changed in jenkins
          User: unknown
          Path:
          core/src/main/java/hudson/model/UpdateSite.java
          http://jenkins-ci.org/commit/jenkins/e465f7202e42b0cb196e98c2e21abedcb85e60d4
          Log:
          [FIXED JENKINS-13454] Optimize the plugin manager

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: unknown Path: core/src/main/java/hudson/model/UpdateSite.java http://jenkins-ci.org/commit/jenkins/e465f7202e42b0cb196e98c2e21abedcb85e60d4 Log: [FIXED JENKINS-13454] Optimize the plugin manager

          Code changed in jenkins
          User: Andrew Bayer
          Path:
          core/src/main/java/hudson/model/UpdateSite.java
          http://jenkins-ci.org/commit/jenkins/ca3ad78017f64c6f3fec10dd9ba335ff770b57f3
          Log:
          Merge pull request #441 from evernat/master

          [FIXED JENKINS-13454] Optimize the plugin manager

          Compare: https://github.com/jenkinsci/jenkins/compare/37fbcf4...ca3ad78

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: core/src/main/java/hudson/model/UpdateSite.java http://jenkins-ci.org/commit/jenkins/ca3ad78017f64c6f3fec10dd9ba335ff770b57f3 Log: Merge pull request #441 from evernat/master [FIXED JENKINS-13454] Optimize the plugin manager Compare: https://github.com/jenkinsci/jenkins/compare/37fbcf4...ca3ad78

          dogfood added a comment -

          Integrated in jenkins_main_trunk #1665
          [FIXED JENKINS-13454] Optimize the plugin manager (Revision e465f7202e42b0cb196e98c2e21abedcb85e60d4)

          Result = SUCCESS
          unknown : e465f7202e42b0cb196e98c2e21abedcb85e60d4
          Files :

          • core/src/main/java/hudson/model/UpdateSite.java

          dogfood added a comment - Integrated in jenkins_main_trunk #1665 [FIXED JENKINS-13454] Optimize the plugin manager (Revision e465f7202e42b0cb196e98c2e21abedcb85e60d4) Result = SUCCESS unknown : e465f7202e42b0cb196e98c2e21abedcb85e60d4 Files : core/src/main/java/hudson/model/UpdateSite.java

          dogfood added a comment -

          Integrated in jenkins_ui-changes_branch #21
          [FIXED JENKINS-13454] Optimize the plugin manager (Revision e465f7202e42b0cb196e98c2e21abedcb85e60d4)

          Result = SUCCESS
          unknown : e465f7202e42b0cb196e98c2e21abedcb85e60d4
          Files :

          • core/src/main/java/hudson/model/UpdateSite.java

          dogfood added a comment - Integrated in jenkins_ui-changes_branch #21 [FIXED JENKINS-13454] Optimize the plugin manager (Revision e465f7202e42b0cb196e98c2e21abedcb85e60d4) Result = SUCCESS unknown : e465f7202e42b0cb196e98c2e21abedcb85e60d4 Files : core/src/main/java/hudson/model/UpdateSite.java

            evernat evernat
            evernat evernat
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: