MuleSoft · Mule runtime
MULE:STREAM_MAXIMUM_SIZE_EXCEEDED
Short answer
MULE:STREAM_MAXIMUM_SIZE_EXCEEDED means a stream grew past the maximum size allowed for it, typically the in-memory buffer of a repeatable in-memory stream. Raise the buffer's maximum size, or use a streaming strategy that does not keep the content in memory.
VerifiedLast verified
01Error text
Error type: MULE:STREAM_MAXIMUM_SIZE_EXCEEDED02Likely causes
- The maximum size allowed for a stream has been exceeded.
- With a repeatable in-memory stream, the error is thrown when more memory than Max in Memory Size is used.
- It is also thrown when the buffer gets full and the buffer size increment does not let it grow.
03How to fix it
- Find the operation that produced the stream and check its streaming strategy.
- Raise Max in Memory Size on the repeatable in-memory stream if the content is expected to be that large.
- For content that is read once, use
<non-repeatable-stream/>so the content is not buffered. - Handle the failure with an error handler of type
STREAM_MAXIMUM_SIZE_EXCEEDED.
04Official documentation
→Related errors
- No space left on deviceNo space left on device in a DataWeave transformation means the temporary files DataWeave writes for large payloads filled the disk. Give the application more resources, or reduce how much it buffers at once.
- java.lang.OutOfMemoryError when listing filesA java.lang.OutOfMemoryError from the File Connector List operation with large files is caused by the default streaming strategy, Repeatable file store iterable. Change the operation's Streaming strategy to No repeatable iterable.
- MULE:FATAL_JVM_ERRORMULE:FATAL_JVM_ERROR means a fatal error occurred in the JVM, such as a stack overflow. It cannot be handled in a flow, and the only safe recovery after a VirtualMachineError is to restart the Mule runtime instance.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer