如何测量内存使用量为Live ASP.NET MVC Web应用程序? [英] How to measure memory usage for a Live ASP.NET MVC web application?

查看:181
本文介绍了如何测量内存使用量为Live ASP.NET MVC Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以马上蝙蝠,不知道这个问题更适合于其他StackExchange网站。

So right off the bat, not sure if this question is better suited for another StackExchange site.

我已经得到了Windows Server 2008上运行的ASP.NET MVC 3 Web应用程序和IIS 7.5

I've got an ASP.NET MVC 3 web application running on Windows Server 2008 and IIS 7.5

网站运行正常开始,但我可以看到内存使用量逐渐增长。约12小时后,它几乎耗尽内存和站点扼流圈。

Site runs fine initially, but i can see the memory usage gradually growing. After about 12 hours it's nearly out of memory and the site chokes.

我使用了很多的缓存,所以我想这与一些可能的内存泄漏结合是问题的根源。

I'm using a lot of caching, so i'm thinking this combined with some possibly memory leaks is the cause of the issue.

所以我的问题 - 什么是最好的方法(工具,例如)监测的内存使用的运行ASP.NET MVC的Web服务器上?

So my question - what's the best way (tools, for example) to monitor memory usage on a web server running ASP.NET MVC?

在过去,我已经使用好老性能监视器,并把IIS柜台上衡量这些事情。

In the past i've used good old' perfmon and put the IIS counters on to measure these things.

据这仍然最好的方式,如果是这样,有人可以推荐一个很好的perfmon计数器模板,我的方案?

It this still the best way, and if so, can someone recommend a good perfmon counter template for my scenario?

推荐答案

性能监视器的柜台仍然是一个很好的技术(而且免费!)。

Perfmon's counters are still a good technique (and free!).

PAL (原木的性能分析),一个免费的工具,对一般健康的ASP.NET的perfmon计数器模板(除基于阈值计数器日志文件生成报告)。

PAL (Performance Analysis of Logs), a free tool, has an ASP.NET perfmon counter template for general health (in addition to generating reports of counter log files based on thresholds).

查看:


  • <一个href=\"http://blogs.msdn.com/b/tess/archive/2008/03/25/net-debugging-demos-lab-7-memory-leak.aspx\">.NET调试演示实验7:内存泄漏

<一个href=\"http://blogs.msdn.com/b/tess/archive/2009/02/03/net-memory-leak-to-dispose-or-not-to-dispose-that-s-the-1-gb-question.aspx\">.NET内存泄漏案例研究:事件处理程序作出的内存气球

追查管理内存泄漏(如何找到一个GC泄漏)

确定您的.NET应用程序有一个内存泄漏

商业工具,如 MemProfiler ,展鹏的的内存分析工具 JetBrains公司探查都非常好(和所有有免费试用)。

Commercial tools like MemProfiler, RedGate's memory profiling tool and JetBrains Profiler are all very good (and all have free trials).

这篇关于如何测量内存使用量为Live ASP.NET MVC Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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