StreamUtils.copy() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
Javadoc
Thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector. {@code OutOfMemoryError} objects may be constructed by the virtual machine as if {@linkplain Throwable#Throwable(String, Throwable, boolean, boolean) suppression were disabled and/or the stack trace was not writable}. @author unascribed @since JDK1.0
at java.util.Arrays.copyOf
Source
at java.io.ByteArrayOutputStream.grow
Source
at java.io.ByteArrayOutputStream.ensureCapacity
Source
at java.io.ByteArrayOutputStream.write
Source
at org.springframework.util.StreamUtils.copy
Source
5 frames hidden

Typical Exception Messages

  1. Java heap space

Origin

Similar

We have seen this error pattern in the following webpages (2)

  1. micheljungvia GitHub7 months ago
    Java heap space
  2. Mitsuyoshi Hasegawavia Spring JIRA1 year ago