gpt4 book ai didi

ASP.NET Processmodel 配置优化

转载 作者:行者123 更新时间:2023-12-02 07:10:17 25 4
gpt4 key购买 nike

常规 ASP.NET 安装将使用以下配置创建 machine.config:

<system.web>
<processModel autoConfig="true" />

我想覆盖 web.config 中的一些属性值,例如:

<system.web>
<processModel
maxWorkerThreads="100"
maxIoThreads="100"
minWorkerThreads="40"
minIoThreads="30"
memoryLimit="60"
/>

我想知道是否必须将所有默认属性写入 web.config 中,还是会自动从 machine.config 中获取 processmodel 的其他默认属性?

以下是processmodel的属性

<processModel 
enable="true|false"
timeout="hrs:mins:secs|Infinite"
idleTimeout="hrs:mins:secs|Infinite"
shutdownTimeout="hrs:mins:secs|Infinite"
requestLimit="num|Infinite"
requestQueueLimit="num|Infinite"
restartQueueLimit="num|Infinite"
memoryLimit="percent"
webGarden="true|false"
cpuMask="num"
userName="{username}"
password="{secure password}"
logLevel="All|None|Errors"
clientConnectedCheck="hrs:mins:secs|Infinite"
comAuthenticationLevel="Default|None|Connect|Call|
Pkt|PktIntegrity|PktPrivacy"
comImpersonationLevel="Default|Anonymous|Identify|
Impersonate|Delegate"
responseDeadlockInterval="hrs:mins:secs|Infinite"
responseRestartDeadlockInterval="hrs:mins:secs|Infinite"
autoConfig="true|false"
maxWorkerThreads="num"
maxIoThreads="num"
minWorkerThreads="num"
minIoThreads="num"
serverErrorMessageFile=""
pingFrequency="Infinite"
pingTimeout="Infinite"
maxAppDomains="2000"
/>

最佳答案

Machine.config 始终是继承的。

来自MSDN :

Multiple configuration files, all named Web.config, can appear in multiple directories on an ASP.NET Web application server. Each Web.config file applies configuration settings to its own directory and all child directories below it. Configuration files in child directories can supply configuration information in addition to that inherited from parent directories, and the child directory configuration settings can override or modify settings defined in parent directories. The root configuration file named systemroot\Microsoft.NET\Framework\versionNumber\CONFIG\Machine.config provides ASP.NET configuration settings for the entire Web server.

关于ASP.NET Processmodel 配置优化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1939230/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com