与W3WP应用程序池的高内存使用IIS 7 [英] High memory usage with w3wp application pool IIS 7

查看:712
本文介绍了与W3WP应用程序池的高内存使用IIS 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在自己的应用程序池中运行在IIS 7.0上一个网站的应用程序。该应用程序是一个ASP.NET MVC 3网站。

I have a website application running in it's own application pool on IIS 7.0. The application is an ASP.NET MVC 3 website.

我已经注意到了相应的W3WP IIS工作服务这个应用程序的内存占用率相当高(800 MB,具有一定的波动)。

I have noticed the memory usage for this applications corresponding w3wp IIS worker service is quite high ( 800 MB, with some fluctuation ).

我试图诊断问题,并尝试以下操作:

I am trying to diagnose the problem and have tried the following:

我对网站IIS级别禁用输出页面缓存,然后再循环应用程序池。这会导致w3wp进程重新启动。这一进程的内存使用量再慢慢爬行高达约800兆,大约需要30秒来这样做。有没有在这个时候被处理的页面请求。当我重新启动该网站从IIS进程的内存大小没有改变。

I have disabled output page caching for the website at IIS level and then recycled the application pool. This causes the w3wp process to restart. The memory usage for this process then slowly creeps up to around 800 MB, it takes around 30 seconds to do so. There are no page requests being handled at this time. When I restart the website from IIS the memory size of the process does not alter.

我试图运行从2010年的VS应用程序的调试复印件,还有内存使用没有任何问题。

I have tried running a debug copy of the application from VS 2010, there are no problems with memory usage.

的一些想法我有/问题是:

时的相关网站code这个问题? - 鉴于任何页面请求之前内存火箭已发送/处理,我会以为这不是一个code问题?

Is this problem related to the websites code? - Given that the memory rockets before any page requests have been sent/handled, I would assume this is NOT a code problem?

建在MVC应用程序没有处理缓存的写入它。

The application built in MVC has no handling of caching written into it.

该网站使用的实时数据显示的,它会定期使用AJAX请求,通常是很长一段时间左开放。

The website uses real-time displaying of data, it uses ajax requests periodically, and is generally left 'open' for long periods of time.

为什么内存使用火箭后应用了被回收,也没有用户请求被发送?这是因为它加载旧的缓存信息到它从磁盘存储?

Why does the memory usage rocket up after the application is recycled and no user requests are being sent? Is this because it is loading old cache information into it's memory from disk?

应用程序不会崩溃,我只是关心的内存使用,它不是一个大网站...

The application does NOT crash, I'm just concerned about the memory usage, it is not that big of a website...

与得到这个问题的底部将AP preciated任何想法/帮助。

Any ideas/help with getting to the bottom of this problem would be appreciated.

推荐答案

我只看我的服务器和我的池使用900-1000MB虚拟内存的大小,以及380MB工作集。我的网站有好几年了问题,现在运行流畅,我有来自各方面的检查。我从来没有池回收和服务器以40%的稳定的可用物理内存运行,直到下一次更新continuesly。

I just look my server and my pools use 900-1000MB Virtual size Memory, and 380MB Working set. My sites run smooth with out problem for some years now, and I have check them from all sides. My pool never recycle and the server runs until the next update continuesly with 40% stable free physical memory.

如果你的内存没有继续增长,那么这个内存是code以及您设置为静态,常量,字符串数据,以及可能的缓存,你的应用程序中。

您可以使用的Process Explorer ,了解工作和虚拟内存大小

You can use process explorer to see the working and the virtual size memory.

您也可以认为运行配置文件对你的code,看看如果您有任何内存泄漏或其他问题。找到一个从谷歌:<一href=\"https://www.google.com/search?hl=en&q=asp.net+memory+profiler\">https://www.google.com/search?hl=en&q=asp.net+memory+profiler.

You can also think to run a profile against your code to see if you have any "memory leak" or other issue. Find one from google: https://www.google.com/search?hl=en&q=asp.net+memory+profiler.

这篇关于与W3WP应用程序池的高内存使用IIS 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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