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

Out of memory error when uploading large files to proget

XMLWordPrintable

      Uploading large files (>100 MB) to proget results in:

      java.lang.OutOfMemoryError: Java heap space
      	at java.util.Arrays.copyOf(Unknown Source)
      	at java.io.ByteArrayOutputStream.grow(Unknown Source)
      	at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)
      	at java.io.ByteArrayOutputStream.write(Unknown Source)
      	at sun.net.www.http.PosterOutputStream.write(Unknown Source)
      	at org.concordion.cubano.driver.http.RawDataWriter.write(RawDataWriter.java:95)
      	at org.concordion.cubano.driver.http.RawDataWriter.write(RawDataWriter.java:69)
      	at org.concordion.cubano.driver.http.HttpEasy.getConnectionMethod(HttpEasy.java:684)
      	at org.concordion.cubano.driver.http.HttpEasy.post(HttpEasy.java:616)
      	at com.inedo.proget.api.ProGetApi.uploadPackage(ProGetApi.java:219)
      	at com.inedo.proget.jenkins.UploadPackageBuilder$PutPackage.call(UploadPackageBuilder.java:245)
      	at com.inedo.proget.jenkins.UploadPackageBuilder$PutPackage.call(UploadPackageBuilder.java:198)
      	at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
      	at com.inedo.proget.jenkins.UploadPackageBuilder.perform(UploadPackageBuilder.java:187)
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$$Lambda$210/14557192.run(Unknown Source)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      

            andrewsumner Andrew Sumner
            andrewsumner Andrew Sumner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: