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

OutOfMemoryError stashing big files on S3

    Details

    • Similar Issues:

      Description

      java.lang.OutOfMemoryError: Java heap space
      	at java.util.Arrays.copyOf(Arrays.java:3236)
      	at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)
      	at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
      	at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)
      	at sun.net.www.http.PosterOutputStream.write(PosterOutputStream.java:78)
      	at java.nio.file.Files.copy(Files.java:2909)
      	at java.nio.file.Files.copy(Files.java:3069)
      	at io.jenkins.plugins.artifact_manager_s3.JCloudsArtifactManager.uploadFile(JCloudsArtifactManager.java:357)
      	at io.jenkins.plugins.artifact_manager_s3.JCloudsArtifactManager.access$000(JCloudsArtifactManager.java:78)
      	at io.jenkins.plugins.artifact_manager_s3.JCloudsArtifactManager$UploadToBlobStorage.invoke(JCloudsArtifactManager.java:343)
      	at io.jenkins.plugins.artifact_manager_s3.JCloudsArtifactManager$UploadToBlobStorage.invoke(JCloudsArtifactManager.java:324)
      

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Carlos Sanchez
            Path:
            src/main/java/io/jenkins/plugins/artifact_manager_s3/JCloudsArtifactManager.java
            http://jenkins-ci.org/commit/artifact-manager-s3-plugin/cfe56d37e89330567ab3fa08d3000d1179334fcb
            Log:
            JENKINS-50668 Prevent loading file in memory on upload

            Fixes java.lang.OutOfMemoryError: Java heap space

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Carlos Sanchez Path: src/main/java/io/jenkins/plugins/artifact_manager_s3/JCloudsArtifactManager.java http://jenkins-ci.org/commit/artifact-manager-s3-plugin/cfe56d37e89330567ab3fa08d3000d1179334fcb Log: JENKINS-50668 Prevent loading file in memory on upload Fixes java.lang.OutOfMemoryError: Java heap space
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/main/java/io/jenkins/plugins/artifact_manager_s3/JCloudsArtifactManager.java
            http://jenkins-ci.org/commit/artifact-manager-s3-plugin/4327ac845a635c230289823d5f23d241c4b47f46
            Log:
            Merge pull request #11 from jenkinsci/JENKINS-50668

            JENKINS-50668 Prevent loading file in memory on upload

            Compare: https://github.com/jenkinsci/artifact-manager-s3-plugin/compare/721f9916b5d4...4327ac845a63

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/io/jenkins/plugins/artifact_manager_s3/JCloudsArtifactManager.java http://jenkins-ci.org/commit/artifact-manager-s3-plugin/4327ac845a635c230289823d5f23d241c4b47f46 Log: Merge pull request #11 from jenkinsci/ JENKINS-50668 JENKINS-50668 Prevent loading file in memory on upload Compare: https://github.com/jenkinsci/artifact-manager-s3-plugin/compare/721f9916b5d4...4327ac845a63

              People

              • Assignee:
                csanchez Carlos Sanchez
                Reporter:
                csanchez Carlos Sanchez
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: