Skip delta computation to reduce memory consumption of recordIssues step

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: warnings-ng-plugin
    • Environment:
      Jenkins 2.440.2
      analysis-mode-api 12.1.0
      forensics-api 2.4.0
      git-forensics 2.1.0
      warnings-ng 11.2.2
      Agent running on Windows

      In one project, the recordIssues step often fails with "hudson.remoting.ProxyException: java.nio.channels.ClosedChannelException", and the stack trace includes "io.jenkins.plugins.forensics.git.delta.GitDeltaCalculator.calculateDelta". I suspect the agent runs out of memory while it's trying to compare files in the Git history, and the error prevents it from responding correctly to the remote call from the Jenkins controller. The error does not terminate the agent Java process. I haven't yet found the out-of-memory error in any logs.

      I'd like a way to reduce the memory consumption by disabling the analysis of modified files. However, I'd like to keep using git-forensics-plugin for choosing the reference build; that doesn't need so much memory.

            Assignee:
            Ulli Hafner
            Reporter:
            Kalle Niemitalo
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: