An Azure service that provides an event-driven serverless compute platform.
Thanks for reaching out to Q&A.
The following error is seen due to memory exhaustion. I have seen issues where there were some memory leaks in the code or the memory of the VM (platform) hitting its limit.
Result: FailureException: MemoryError: Engine process terminated. This is most likely due to system running out of memory. Please retry with increased memory
Some customers run the code in their local machine where it would work fine and then deploy the function to a consumption plan app where its RAM is only 1.5 GB whereas the RAM in their local machine would be greater than 1.5 GB.
I would suggest you to run the memory profiling in the python function to analyze for potential memory bottlenecks in your functions. Please note that, Memory profiling is intended only for memory footprint analysis on development environment. Please do not apply the memory profiler on production function apps.
Memory profiling: https://learn.microsoft.com/en-us/azure/azure-functions/python-memory-profiler-reference
I hope this helps!
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.