How to disable the application pool idle time-out in IIS7?(如何在 IIS7 中禁用应用程序池空闲超时?)
问题描述
如果我将空闲超时设置为 0,它会被禁用吗?
Will it be disabled if I set the idle time-out to 0?
推荐答案
是的,将空闲超时值设置为零将禁用空闲超时.
Yes, setting the idle timeout value to zero will disable idle timeouts.
奇怪的是,MS 文档中没有记录,但我对此的证据来自:
Oddly this isn't documented in the MS docs but my evidence for this arises from:
IIS 设置架构
IIS Settings Schema
如果您查看 IIS 设置架构:
If you have a look at the IIS settings schema in:
C:WindowsSystem32inetsrvconfigschemaIIS_schema.xml
<sectionSchema name="system.applicationHost/applicationPools">
看起来像:
<attribute name="idleTimeout"
type="timeSpan"
defaultValue="00:20:00"
validationType="timeSpanRange"
validationParameter="0,2592000,60"/>
如果您查看 validationParameter 属性,我们会看到 0 到 2592000 秒的范围(,60 指定设置的粒度,在这种情况下,该值必须可被 60 整除 [一分钟]).
If you look at the validationParameter attribute we see a range of 0 to 2592000 seconds (the ,60 specifies the granularity of the setting, in this case the value must be divisable by 60 [one minute]).
如果您看到 0 的起始允许值,则通常表明该设置可以被禁用.
If you see a starting permissible value of 0 then that usually indicates the setting can be disabled.
IIS7 应用程序池空闲超时设置
Brad Kingsley 是 OrcsWeb 的创始人兼首席执行官,他是相当知名、受人尊敬和值得信赖的 Microsoft 托管商和金牌合作伙伴.
Brad Kingsley is the founder and CEO of OrcsWeb who are a fairly well known, respected and trusted Microsoft hoster and Gold Partner.
还有经验证据表明它有效".
Then there's also the empirical evidence of the fact that it "just works".
这篇关于如何在 IIS7 中禁用应用程序池空闲超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 IIS7 中禁用应用程序池空闲超时?
基础教程推荐
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
