MVC 4网站内存泄漏检测 [英] MVC 4 website memory leak detecting
问题描述
Process Info {2 processes)
PID/Name: 96148 - w3wp
Start/Uptime: 12/15/2014 8:41:53 AM - 00:01:26
CPU Time: 00:02:18
Working set (memory): 1.41 GB
我如何找出问题所在?我没有内存泄漏的经验.我的网站在Local上运行良好.我认为是因为在线站点有许多用户可以访问(我每个月的页面浏览量约为150万).
可能性太多.通常,如果您的应用程序在SessionState或Runtime.Caching中缓存很多,则最终将耗尽内存.
在没有看到您的应用程序的情况下,我们无法确定导致问题的原因.我要做的第一件事是使用Memory Profiler进行分析.
例如-
i have a MVC4 website. When i running it on the Hosting i got very high memory
Process Info {2 processes)
PID/Name: 96148 - w3wp
Start/Uptime: 12/15/2014 8:41:53 AM - 00:01:26
CPU Time: 00:02:18
Working set (memory): 1.41 GB
How can i figure out the problem? I do not have experience with memory leak. My website is working well on Local. I think because online site have many users access (i have around 1.5m page views per month).
There are too many possibilities. Normally, if your application cache a lot in SessionState or Runtime.Caching, it'll eventually run out of memory.
Without seeing your application, we cannot tell what causes the issue. The first thing I'll do is to profile with Memory Profiler.
For example -
Red-Gate - ANTS Memory Profiler
这篇关于MVC 4网站内存泄漏检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!