MuleSoft · Mule runtime
MULE:FATAL_JVM_ERROR
Short answer
MULE: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.
VerifiedLast verified
01Error text
Error type: MULE:FATAL_JVM_ERROR02Likely causes
- A fatal error occurred, such as stack overflow.
- Mule wraps the error as
MULE:FATALand raises aFATAL_ERROR_RAISEDalert. - It is a
CRITICALerror, and critical errors cannot be handled.
03How to fix it
- Restart the Mule runtime instance. The docs state this is the only safe recovery action after a
VirtualMachineError. - Search the logs for
VirtualMachineError,OutOfMemoryErrororStackOverflowErrorto find what led to it. - Configure health checks and automatic restarts on managed deployment targets, and use a process supervisor on-premises.
- Fix the cause, for example unconsumed streams that hold resources and can lead to an
OutOfMemoryError.
04Official documentation
→Related errors
- Stack Overflow. Max stack is 256Stack Overflow. Max stack is 256 means a DataWeave function recursed deeper than the stack limit allows. Rewrite the recursion so it goes less deep, or raise the limit with the com.mulesoft.dw.stacksize property.
- MULE:STREAM_MAXIMUM_SIZE_EXCEEDEDMULE: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.
- 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.
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