开发者

How can I monitor if my production ASP.NET application is resetting on its own?

开发者 https://www.devze.com 2023-01-31 11:09 出处:网络
Can I objectively determine if my production ASP.NET web application is resetting its application pool? It could be for whatever reason (for example, an error occurred or memory topped off). I don\'t

Can I objectively determine if my production ASP.NET web application is resetting its application pool? It could be for whatever reason (for example, an error occurred or memory topped off). I don't have direct access to my production servers, so when I want something on the server, I have ask specifically for it like PerfMon counters to run. It is a runni开发者_开发知识库ng IIS 6.0.

I understand that I could use PerfMon to catch ASP.NET Application Restarts. If I was not monitoring that PerfMon, is there anything that can tell me the application restarted sometime in the past?


You'll need access to the Event Logs.

Depending on your IIS version you might have to enable the worker processing recycling events.

For IIS 6: http://technet.microsoft.com/en-us/library/cc756146(WS.10).aspx

For IIS 7: http://www.iis.net/ConfigReference/system.applicationHost/applicationPools/add/recycling

For more info, ask again on serverfault.com


If all you really care about is if the application resets, you can just add some sort of Email alert, or logging, in the Application_Start of your global.asax.

This would tell you when, and how often, the application starts up, but wouldn't give you any details as to why it happened.

This would at least give you the information you needed to look at specific times for when your application is resetting.

0

精彩评论

暂无评论...
验证码 换一张
取 消