There is the excellent Start Profiling
button in the SCM portal that works perfect for CPU.
Then there are some sources that refer to a Downl
Remote Profiling the Azure Web App from Visual Studio is probably the best option.
https://azure.microsoft.com/en-us/blog/remote-profiling-support-in-azure-app-service/
You can download a memory dump using Kudu Console and use DebugDiag to profile it, you can have more than one memory dump, one before the leak happens, one during it and one after, later you can compare and see which objects are growing in size and not getting disposed
Unfortunately the kudu support page has been deprecated. You can now find it under Diagnose and solve problems
:
Once you've downloaded the dump files, open them in Visual Studio and click "Collect a memory dump" like the accepted answer from Grandhali suggested.
Try using Kudu console. Go to https://[sitename].scm.azurewebsites.net/support Click Analyze -> Dignostics -> Settings. Make sure Memory dumps is checked And then Click Dignose Now. This will work only in Basic plan and above (Not available for free plan) After some time you will get the dump Open the downloaded file with Visual studio and select "Debug managed memory". You can then see the details.