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

Heavy memory consumption for test results, esp. stdout/stderr

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • junit-plugin
    • None

      Looking through a heap dump from our server which crashed with an OOME recently, I noticed a number of large String's. The second largest, at around 300k characters, is the standard error from a test suite (one of thousands) in one build (maybe 20 builds old) in one job.

      Why should this be loaded in memory? In the unlikely event that someone wants to look through details of these old test results, they can be loaded from disk. The junitResult.xml from this build is 3.1 Mb, so it is ridiculous to keep it in heap. Most of that is stderr.

      Alternately, discard stdout/stderr for test suites that passed, since it is unlikely you would want to look at output in that case anyway.

          [JENKINS-6516] Heavy memory consumption for test results, esp. stdout/stderr

          Jesse Glick created issue -
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          huybrechts made changes -
          Assignee New: Jesse Glick [ jglick ]
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-4158 [ JENKINS-4158 ]
          rhierlmeier made changes -
          Link New: This issue is related to JENKINS-7562 [ JENKINS-7562 ]
          fk_ made changes -
          Link New: This issue is related to JENKINS-8049 [ JENKINS-8049 ]
          Andrew Bayer made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 136611 ] New: JNJira + In-Review [ 204133 ]

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: