MVC 4网站内存泄漏检测 [英] MVC 4 website memory leak detecting

查看:81
本文介绍了MVC 4网站内存泄漏检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个MVC4网站.当我在主机上运行它时,我有很高的内存

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进行分析.

例如-

Red-Gate-ANTS Memory Profiler

JetBrain-dotTrace

Telerik-JustTrace

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

JetBrain - dotTrace

Telerik - JustTrace

这篇关于MVC 4网站内存泄漏检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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