moa_arosii commented on Bug JENKINS-22734

We see the same problem when large files are copied to the slave in v. 1.560:

It is also similar to this recently reported problem: http://jenkins-ci.361315.n4.nabble.com/Problems-with-memory-usage-on-1-560-td4699645.html

It looks like the problem lies on the slave in this part:

Caused by: java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOf(Arrays.java:2271)
	at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113)
	at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
	at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140)
	at hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:87)}}

If you look on the 'blame' for ChannelBuilder it looks like the usage of FlightRecorderInputStream was introduced in MakeTransport in line 251 20 days ago in commit "Merge branch 'master' into nio" (bdd486dbe6584c607bed0e4324abbd6eeddbb39e).

It might be a good guess that this "recording' of content causes the problem when large amount of files are transferred. In our case it is close to 100 mb.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to