问题描述
SCM门户中有一个出色的 Start Profiling
按钮,非常适合CPU.
然后,有些来源引用了 Download GC Dump
按钮:使用Visual Studio打开下载的文件,然后选择调试托管内存".然后,您可以查看详细信息.
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 Download GC Dump
button:https://stackoverflow.com/a/27987593/647845
But that doesn't seem to be available anymore.
Then there is the Download memory dump
button.But for now I can't figure out how/if I can see the Type / Refcount / Size stastistics that I'm used too.
What is the recommended way to look for memory leaks in a C# Azure Web App?
Try using Kudu console.Go to https://[sitename].scm.azurewebsites.net/supportClick Analyze -> Dignostics -> Settings. Make sure Memory dumps is checkedAnd 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 dumpOpen the downloaded file with Visual studio and select "Debug managed memory".You can then see the details.
这篇关于如何调试Azure Web App内存泄漏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!