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

OutOfMemoryError when recording changes

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not A Defect
    • git-plugin
    • None
    • Ubuntu 8.04, Hudson 1.389

    Description

      We were attempting builds following the introduction of a large number of changes into the repository via a cvsimport operation. (Running 'git whatchanged' from the command line yields 100K+ lines of information.) Following the message "Recording changes in branch..." the plugin invokes "git whatchanged", and the process subsequently runs out of Java heap space, reporting OutOfMemoryError. Allocating additional heap space has helped in some circumstances.

      Attachments

        Activity

          abayer Andrew Bayer added a comment -

          Yeah, this is a shame, but when you're parsing a giant history log, it's going to require a lot of memory. Sorry.

          abayer Andrew Bayer added a comment - Yeah, this is a shame, but when you're parsing a giant history log, it's going to require a lot of memory. Sorry.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          src/main/java/hudson/plugins/git/GitSCM.java
          http://jenkins-ci.org/commit/git-plugin/46a267021fc45b8a3cd2acee9928246bb35b1e03
          Log:
          [FIXED JENKINS-8365] There's no need to keep the whole output from "git whatchanged" in memory. Stream it for better efficiency.

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: src/main/java/hudson/plugins/git/GitSCM.java http://jenkins-ci.org/commit/git-plugin/46a267021fc45b8a3cd2acee9928246bb35b1e03 Log: [FIXED JENKINS-8365] There's no need to keep the whole output from "git whatchanged" in memory. Stream it for better efficiency.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          src/main/java/hudson/plugins/git/GitChangeLogParser.java
          http://jenkins-ci.org/commit/git-plugin/6cfb79042ee8bba28ec1ab219d4b5c99e6e8c649
          Log:
          JENKINS-8365 avoid unbounded memory consumption with a massive change.

          Compare: https://github.com/jenkinsci/git-plugin/compare/64e14c5...6cfb790

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: src/main/java/hudson/plugins/git/GitChangeLogParser.java http://jenkins-ci.org/commit/git-plugin/6cfb79042ee8bba28ec1ab219d4b5c99e6e8c649 Log: JENKINS-8365 avoid unbounded memory consumption with a massive change. Compare: https://github.com/jenkinsci/git-plugin/compare/64e14c5...6cfb790
          dogfood dogfood added a comment -

          Integrated in plugins_git-plugin #191
          [FIXED JENKINS-8365] There's no need to keep the whole output from "git whatchanged" in memory. Stream it for better efficiency.
          JENKINS-8365 avoid unbounded memory consumption with a massive change.

          Kohsuke Kawaguchi : 46a267021fc45b8a3cd2acee9928246bb35b1e03
          Files :

          • src/main/java/hudson/plugins/git/GitSCM.java

          Kohsuke Kawaguchi : 6cfb79042ee8bba28ec1ab219d4b5c99e6e8c649
          Files :

          • src/main/java/hudson/plugins/git/GitChangeLogParser.java
          dogfood dogfood added a comment - Integrated in plugins_git-plugin #191 [FIXED JENKINS-8365] There's no need to keep the whole output from "git whatchanged" in memory. Stream it for better efficiency. JENKINS-8365 avoid unbounded memory consumption with a massive change. Kohsuke Kawaguchi : 46a267021fc45b8a3cd2acee9928246bb35b1e03 Files : src/main/java/hudson/plugins/git/GitSCM.java Kohsuke Kawaguchi : 6cfb79042ee8bba28ec1ab219d4b5c99e6e8c649 Files : src/main/java/hudson/plugins/git/GitChangeLogParser.java

          People

            abayer Andrew Bayer
            decervelage decervelage
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: