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
How to capture Memory Dump of Consumption Plan Function App?
ChaitanyaNaykodi-MSFT
24,666
Reputation points Microsoft Employee
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.
Accepted answer
-
Michelle Blum 811 Reputation points Microsoft Employee
2021-05-19T18:13:46.28+00:00