当我从下面的文档中实现标题为“集成pipe道的优点”的部分时,w3wp.exe进程的内存使用量计数器会随着经典asptesting页面的请求而增加。 我正在查看资源监视器中的Commit,Working Set,Shareable和Private Bytes。 我的testing页(下面)大约刷新自己。 每秒一次。 每次请求都会增加内存使用量。 当我从web.config(下面)中删除模块部分时,问题不会发生。
这是由devise? 还是有额外的configuration更改,我应该使稳定内存消耗?
我的目标是与经典的asp一起实现表单validation。 除了这个内存问题,它工作得很好。
这是一个传统的应用程序迁移到.NET,请不要推荐基本的身份validation或删除经典的ASP要求。 我也在这里问这个问题。
谢谢!
文件:
http://www.iis.net/learn/application-frameworks/building-and-running-aspnet-applications/how-to-take-advantage-of-the-iis-integrated-pipeline
我的服务器/ IISconfiguration:
Win2k8 R2 SP 1,64位,IIS 7.5,7.5 GB内存新鲜的EC2服务器:Windows_Server-2008-R2_SP1-English-64Bit-SQL_2008_R2_SP2_Express-2013.04.14(ami-c082e3a9)m1.large集成应用程序池,.NET v4.0 ,集成,使用应用程序池标识,内存限制设置为0(无限制),仅64位
Web.config文件:
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <modules runAllManagedModulesForAllRequests="true"> <remove name="UrlAuthorization" /> <remove name="DefaultAuthentication" /> <remove name="FormsAuthentication" /> <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" preCondition="" /> <add name="DefaultAuthentication" type="System.Web.Security.DefaultAuthenticationModule" preCondition="" /> <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" preCondition="" /> </modules> </system.webServer> <system.web> <sessionState mode="Off" /> <compilation debug="false" /> </system.web> </configuration>
testing页面:
<html> <head> <title>test</title> <meta http-equiv="refresh" content="1"> </head> <body><%=Now()%></body> </html>
编辑:Windows更新是最新的。
我相信我在这里回答了我自己的问题。
我跟踪了这篇文章的作者,发现自从他创立了一家公司,该公司提供了一个称为LeanSentry的窗口监控/分析服务(我不以任何方式隶属于该服务)。
我将服务连接到了我的testingEC2服务器,发现由于缺lessfavicon.ico静态文件 ,我的testing页面的每个请求都会导致404错误,并且validation模块正在使用内存。 我将缺less的favicon文件放在根网站文件夹中,并且在大概10分钟的初始生长期之后,内存使用率现在保持不变。
如果您面临同样的问题,我希望这会有帮助!