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

MuleSoft error
Error type: MULE:STREAM_MAXIMUM_SIZE_EXCEEDED

02Likely 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

  1. Find the operation that produced the stream and check its streaming strategy.
  2. Raise Max in Memory Size on the repeatable in-memory stream if the content is expected to be that large.
  3. For content that is read once, use <non-repeatable-stream/> so the content is not buffered.
  4. Handle the failure with an error handler of type STREAM_MAXIMUM_SIZE_EXCEEDED.

04Official documentation

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

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.