的Application_Start [英] Application_Start

查看:92
本文介绍了的Application_Start的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

asp.net 2 / C#


我注意到在我的网站上不活动期间,

Application_Start事件每隔40-开启一次45分钟。这是

正常吗?该应用程序不应该启动一次并保持运行直到我停止

吗?


JP

解决方案

没有必要,一些工人流程可能会被设置为回收,或者因缺乏资源或故障而回收



检查应用程序池

检查万维网发布服务

监控您的资源。

" Joey" < jo ********* @ topscene.comwrote in message

news:11 ********************* @ 57g2000hsv.googlegrou ps.com ...


asp.net 2 / C#


我注意到期间在我的网站上不活动,

Application_Start事件大约每40-45分钟一次。这是

正常吗?该应用程序不应该启动一次并保持运行直到我停止

吗?


JP



检查事件日志


" IfThenElse" < sq ********** @ hotmail.comwrote in message

news:e3 ************** @ TK2MSFTNGP03.phx.gbl ...


没有必要,一些工人流程可能会被设置为回收,或者因缺乏资源或故障而回收
。 />

检查应用程序池

检查万维网发布服务

监控您的资源。


" Joey" < jo ********* @ topscene.comwrote in message

news:11 ********************* @ 57g2000hsv.googlegrou ps.com ...


> asp.net 2 / C#

我注意到在不活动期间在我的网站上,每隔40-45分钟就会发生一次Application_Start事件。这个
正常吗?该应用程序不应该启动一次并保持运行直到我停止它吗?

JP




"乔伊" < jo ********* @ topscene.comwrote in message

news:11 ********************* @ 57g2000hsv.googlegrou ps.com ...


我注意到在我的网站上不活动期间,

Application_Start事件是大约每40-45分钟开火一次。这是

正常吗?该应用程序不应该启动一次并保持运行直到我停止

吗?



在这种意义上,你不能启动或停止应用程序...


第一个会话时,Application_Start会触发已创建并且

Application_End在上一个会话结束时触发。

-

Mark Rae

ASP.NET MVP
http://www.markrae.net


asp.net 2/C#

I have noticed that during periods of inactivity on my website, the
Application_Start event is firing about every 40-45 minutes. Is this
normal? Shouldn''t the app start once and remain running until I stop
it?

JP

解决方案

Not necessary, some worker processes might be set to recycle, or recycling
for lack of resources or failures.

Check application pool(s)
check World Wide Web Publishing Service
monitor your resources.
"Joey" <jo*********@topscene.comwrote in message
news:11*********************@57g2000hsv.googlegrou ps.com...

asp.net 2/C#

I have noticed that during periods of inactivity on my website, the
Application_Start event is firing about every 40-45 minutes. Is this
normal? Shouldn''t the app start once and remain running until I stop
it?

JP



Check you event logs

"IfThenElse" <sq**********@hotmail.comwrote in message
news:e3**************@TK2MSFTNGP03.phx.gbl...

Not necessary, some worker processes might be set to recycle, or
recycling for lack of resources or failures.

Check application pool(s)
check World Wide Web Publishing Service
monitor your resources.
"Joey" <jo*********@topscene.comwrote in message
news:11*********************@57g2000hsv.googlegrou ps.com...

>asp.net 2/C#

I have noticed that during periods of inactivity on my website, the
Application_Start event is firing about every 40-45 minutes. Is this
normal? Shouldn''t the app start once and remain running until I stop
it?

JP




"Joey" <jo*********@topscene.comwrote in message
news:11*********************@57g2000hsv.googlegrou ps.com...

I have noticed that during periods of inactivity on my website, the
Application_Start event is firing about every 40-45 minutes. Is this
normal? Shouldn''t the app start once and remain running until I stop
it?

You don''t start or stop the Application in this sense...

Application_Start fires when the first Session is created and
Application_End fires when the last Session ends.
--
Mark Rae
ASP.NET MVP
http://www.markrae.net


这篇关于的Application_Start的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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