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

Remote stdout copier java.lang.OutOfMemoryError: Java heap space

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • other
    • None
    • Platform: All, OS: Windows XP

      java.exe -jar hudson-core-1.183.jar longNightlyJob bash -c "Fullbuild.sh"
      produces OutOfMemory error:

      Exception in thread "Fullbuild.sh: stdout copier" java.lang.OutOfMemoryError:
      Java heap space
      at java.util.Arrays.copyOf(Unknown Source)
      at java.io.ByteArrayOutputStream.write(Unknown Source)
      at sun.net.www.http.PosterOutputStream.write(Unknown Source)
      at hudson.util.EncodingStream.write(EncodingStream.java:22)
      at java.io.FilterOutputStream.write(Unknown Source)
      at hudson.util.DualOutputStream.write(DualOutputStream.java:29)
      at hudson.util.StreamCopyThread.run(StreamCopyThread.java:28)
      Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
      at java.util.Arrays.copyOf(Unknown Source)
      at java.io.ByteArrayOutputStream.write(Unknown Source)
      at sun.net.www.http.PosterOutputStream.write(Unknown Source)
      at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)
      at sun.nio.cs.StreamEncoder.implClose(Unknown Source)
      at sun.nio.cs.StreamEncoder.close(Unknown Source)
      at java.io.OutputStreamWriter.close(Unknown Source)
      at hudson.Main.remotePost(Main.java:99)
      at hudson.Main.run(Main.java:40)
      at hudson.Main.main(Main.java:26)

      It would be nice to have the output buffered into a logfile and transfered to
      the Master in pieces. Please, cut the "salami" in slices before eating

      P.S. Hudson is great! Definitely: architecture, concepts, plug-ins!

            Unassigned Unassigned
            hostlows hostlows
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: