How to debug Azure Web App memory leaks?

前端 未结 4 859
广开言路
广开言路 2021-02-14 15:02

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

相关标签:
4条回答
  • 2021-02-14 15:47

    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/

    0 讨论(0)
  • 2021-02-14 15:48

    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

    0 讨论(0)
  • 2021-02-14 15:54

    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.

    0 讨论(0)
  • 2021-02-14 16:07

    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.

    0 讨论(0)
提交回复
热议问题