How to capture Memory Dump of Consumption Plan Function App?

ChaitanyaNaykodi-MSFT 20,606 Reputation points Microsoft Employee
2021-05-19T17:50:54.513+00:00

I have a Function with some performance issues for my App and I would like to use a memory dump to debug it. For Azure Web Apps I can navigate to Diagnose and Solve Problems and Collect Memory Dump to do this, but for my Function App it does not look like I have the same option. I am guessing this is because my Function is on a Consumption Plan, however I am still wondering if there is a way for me to get this dump and further troubleshoot my issue.

98001-image.png

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,025 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michelle Blum 806 Reputation points Microsoft Employee
    2021-05-19T18:13:46.28+00:00

    We can collect a dump to further troubleshoot issues for a Consumption Plan Function App. While the app is running / encountering the performance issue, please follow the below steps to capture the dump-
    Navigate to Kudu (<Function-App-Name>.scm.azurewebsites.net) -> Process Explorer
    Find the w3wp.exe Process ID (four digit number usually) that does not have the "SCM" tag next to it
    In another tab navigate in Kudu to Debug Console -> CMD -> Drop down in folders into D:/home/Logfiles directory
    Run the following command replacing PID with the process ID captured- d:\devtools\sysinternals\procdump -accepteula -ma PID

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful