如何监视我的生产 ASP.NET 应用程序是否自行重置?

发布于 2024-10-08 19:39:59 字数 241 浏览 0 评论 0原文

我能否客观地确定我的生产 ASP.NET Web 应用程序是否正在重置其应用程序池?这可能是出于任何原因(例如,发生错误或内存已满)。我无法直接访问我的生产服务器,因此当我想要在服务器上运行某些内容时,我会专门要求运行 PerfMon 计数器之类的东西。它是一个正在运行的 IIS 6.0。

我知道我可以使用 PerfMon 来捕获 ASP.NET 应用程序重新启动。如果我没有监视 PerfMon,有什么可以告诉我应用程序在过去某个时间重新启动过吗?

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 running 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

霊感 2024-10-15 19:39:59

您需要访问事件日志。

根据您的 IIS 版本,您可能必须启用工作进程处理回收事件。

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

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

有关详细信息,请在 serverfault.com 上再次询问

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

戈亓 2024-10-15 19:39:59

如果您真正关心的是应用程序是否重置,您可以在 global.asax 的 Application_Start 中添加某种电子邮件警报或日志记录。

这会告诉您应用程序启动的时间和频率,但不会提供有关其发生原因的任何详细信息。

这至少可以为您提供查看应用程序重置时的特定时间所需的信息。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文