如何调试 Azure Web App 内存泄漏? [英] How to debug Azure Web App memory leaks?

查看:27
本文介绍了如何调试 Azure Web App 内存泄漏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 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/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.

这篇关于如何调试 Azure Web App 内存泄漏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆