Activity function doesn't send failure error code 137 running out of memory to orchestrator.

Arezoo Abdollahi 26 Reputation points
2023-02-15T17:42:01.0766667+00:00

When having a large input, the activity function fails with error code 137 running out of memory but it doesn't send the failure to the orchestrator function. Therefore, the orchestrator functions keep running. Failure also doesn't send to the logic app.

Note that I deployed my function on a premium plan EP3 which I have 14GB of memory. However, I only used about 2.5GB of memory as the Azure Function Monitor shows.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,506 Reputation points
    2023-03-05T06:14:24.89+00:00

    The error code 137 is usually caused by the operating system killing the Python process due to an out-of-memory error. According to the documentation, the Azure Functions platform has a service limitation that terminates any function apps that exceed the memory limit.

    https://learn.microsoft.com/en-us/azure/azure-functions/recover-python-functions?tabs=vscode%2Cbash&pivots=python-mode-decorators#troubleshoot-python-exited-with-code-137

    You can try to analyze the memory bottleneck in your function app by visiting the tutorial section in memory profiling on Python functions.

    https://learn.microsoft.com/en-us/azure/azure-functions/python-memory-profiler-reference#memory-profiling-process

    If you have already done that and the issue still persists, you can try to reduce the memory usage of your function app by optimizing the code, reducing the size of data structures.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.