IIS似乎想睡觉直到下一个请求 [英] IIS seems like to sleep until the next request

查看:97
本文介绍了IIS似乎想睡觉直到下一个请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的Web应用程序创建了一个httpModule,它基本上是由计时器按特定的时间表触发的,它运行良好,并且在我在IIS中发布它后调用了我想要的方法,但是如果没有请求会发生什么呢? Web应用程序停止运行,使任何计划的事件都无法运行,只有当我发出新请求时,它才会再次运行.我究竟做错了什么?我可以让我的网站不休眠,以便在没有请求的情况下按要求运行schduled httpModule吗? 我希望我说清楚了.

I have created a httpModule for my Web Application which basically is triggered by a timer on specific schedules, it runs fine and the method I want is invoked after I publish it in IIS but what happens if there is no request it seems like the Web Application stops to a stand still making any scheduled events not to run, It will only run again only if I make a new request. What am I doing wrong? Can I make my website not sleep so that during times where there is no request the schduled httpModule would run as required? I hope I made this clear.

推荐答案

您应在此处检查应用程序池"设置,以确保它不会回收工作进程

You should check you Application Pool setting there to make sure it does not recycle the working process

编辑 不确定IIS是哪个版本,但以IIS7.5为例,在应用程序池的高级设置中,有一个名为"Idle Time-out(minutes)"的设置,这意味着您的应用程序在该时间之后处于空闲状态它将被关闭,在回收"部分中也将其设置为常规时间间隔(分钟)",表示这意味着将回收池的时间.

EDIT Not sure what version is your IIS, but take IIS7.5 as an example, in the advanced setting of an application pool, there is a setting named like 'Idle Time-out(minutes)' which means after your application idle for that time it will be shut down, also a setting named as Regular Time Interval(minutes) in Recycling section, says it means Period of time the pool will be recycled.

这篇关于IIS似乎想睡觉直到下一个请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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