如何在 IIS7 中禁用应用程序池空闲超时?

How to disable the application pool idle time-out in IIS7?(如何在 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 中禁用应用程序池空闲超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
how do i pass parameters to aspnet reportviewer(如何将参数传递给aspnet report查看器)
Bind multiple parameters from route and body to a model in ASP.NET Core(在ASP.NET Core中将路由和主体中的多个参数绑定到一个模型)
Custom model binding in AspNet Core WebApi?(AspNet Core WebApi中的自定义模型绑定?)
How to minify in .net core mvc view?(如何在.Net核心MVC视图中缩小?)