如何设置IIS以使应用程序保持活动状态? [英] How do I set up my IIS to keep my application alive?

查看:335
本文介绍了如何设置IIS以使应用程序保持活动状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为我的Web应用程序会在一段时间后关闭。



如果我在5分钟内没有使用该应用程序,它将返回一个新会话。会话超时设置为720分钟,因此不会出现问题。



它可能是应用程序池中的设置还是类似的?我认为这是某种资源管理。我使用IIS 7.0



我是服务器的笨蛋所以如果我在这里错过了明显的话,请耐心等待。

解决方案

我们遇到了同样的问题,一个网络服务必须以这样的方式保持在线状态,即如果它变得陈旧,我们就无法承担启动它所涉及的延迟。 / p>

我们写了一个非常简单的Windows服务,每3分钟醒来一次,并请求@Wayne建议的页面。像魅力一样工作。


I think my Webapplication gets shut down after a while.

It returns a new session if I haven't used the application in maybe 5 minutes. The session timeout is set to 720 minutes so that can't be the issue.

Is it maybe a setting in the Application Pool or something like that? I figure it is some sort of resource management. I use IIS 7.0

I am a dork with servers so please bear with me if I am missing the obvious here.

解决方案

We had the same issue with a web service that had to stay online in such a way that we couldn't afford the latency involved in starting it up if it went stale.

We wrote a very simple Windows Service that woke up every 3 minutes and requested a page as @Wayne suggested. Worked like a charm.

这篇关于如何设置IIS以使应用程序保持活动状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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