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

Jenkins server started through gradle-jpi-plugin is very slow

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • gradle-jpi-plugin
    • None
    • gradle-jpi plugin version 0.12.1

      tried with both Windows 7 on Intel i5 CPU
      and MacOS on i7 CPU. both have 4 cores.

      I noticed that Jenkins started through "gradle server" command is very slow, each page load takes 3-5 seconds on a modern Core i7 machine. I see it is using a lot of CPU time.

      if I stop it and run Jenkins from a regular WAR file, it works fast.
      is there something that can be optimized there?..

          [JENKINS-29297] Jenkins server started through gradle-jpi-plugin is very slow

          That's because a lot of debug options are enabled by default:
          https://github.com/jenkinsci/gradle-jpi-plugin/blob/0.12.1/src/main/groovy/org/jenkinsci/gradle/plugins/jpi/ServerTask.groovy#L46-L48

          Unfortunately it's currently not possible to override those settings. I will fix that for the next release.

          Daniel Spilker added a comment - That's because a lot of debug options are enabled by default: https://github.com/jenkinsci/gradle-jpi-plugin/blob/0.12.1/src/main/groovy/org/jenkinsci/gradle/plugins/jpi/ServerTask.groovy#L46-L48 Unfortunately it's currently not possible to override those settings. I will fix that for the next release.

          Daniel Spilker added a comment - https://github.com/jenkinsci/gradle-jpi-plugin/pull/56

          Code changed in jenkins
          User: Daniel Spilker
          Path:
          CHANGELOG.md
          README.md
          src/main/groovy/org/jenkinsci/gradle/plugins/jpi/ServerTask.groovy
          http://jenkins-ci.org/commit/gradle-jpi-plugin/2d4a5f756d03b65a32370232e5d6dcfaf5f24636
          Log:
          JENKINS-29297 allow to override system properties which are set in the server task

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Spilker Path: CHANGELOG.md README.md src/main/groovy/org/jenkinsci/gradle/plugins/jpi/ServerTask.groovy http://jenkins-ci.org/commit/gradle-jpi-plugin/2d4a5f756d03b65a32370232e5d6dcfaf5f24636 Log: JENKINS-29297 allow to override system properties which are set in the server task

          Code changed in jenkins
          User: Daniel Spilker
          Path:
          CHANGELOG.md
          README.md
          src/main/groovy/org/jenkinsci/gradle/plugins/jpi/ServerTask.groovy
          http://jenkins-ci.org/commit/gradle-jpi-plugin/913fd38c7395c6ab889d32b7694b58020d57a3e6
          Log:
          Merge pull request #56 from daspilker/JENKINS-29297

          JENKINS-29297 allow to override system properties

          Compare: https://github.com/jenkinsci/gradle-jpi-plugin/compare/926d24efefee...913fd38c7395

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Spilker Path: CHANGELOG.md README.md src/main/groovy/org/jenkinsci/gradle/plugins/jpi/ServerTask.groovy http://jenkins-ci.org/commit/gradle-jpi-plugin/913fd38c7395c6ab889d32b7694b58020d57a3e6 Log: Merge pull request #56 from daspilker/ JENKINS-29297 JENKINS-29297 allow to override system properties Compare: https://github.com/jenkinsci/gradle-jpi-plugin/compare/926d24efefee...913fd38c7395

            daspilker Daniel Spilker
            alskor Alex Java
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: