machine.config 的奇怪之处
我正在尝试调整 IIS 以减少争用,并且按照 .net 上的许多文章,我试图在文件中找到此内容,但没有结果:
<system.web>
...
<httpRuntime minFreeThreads="8" minLocalRequestFreeThreads="4" ... />
....
<processModel maxWorkerThreads="20" maxIoThreads="20" ... />
....
</.system.web>
.net 框架版本都不包含 machine.config 文件,这是否正常?上面的设置?
I am trying to tune IIS to reduce contention, and following many articles on the .net I am trying to locate this in the file to no result:
<system.web>
...
<httpRuntime minFreeThreads="8" minLocalRequestFreeThreads="4" ... />
....
<processModel maxWorkerThreads="20" maxIoThreads="20" ... />
....
</.system.web>
Is it normal that none of the .net framework versions contain a machine.config file that contains the above settings?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
当然 - 如果它们不存在,则将使用默认值。
minFreeThreads 的默认值是与您设置 8 以及 minLocalRequestFreeThreads 为 4。
maxWorkerThreads 的默认值为 20,最大Io线程。
因此,除非有人在 machine.config 中将它们设置为较低的值,否则设置这些不会有任何影响。
Certainly - if they're not present then the default values will be used.
The default value for minFreeThreads is the same as you're setting , 8, and the default for minLocalRequestFreeThreads is 4.
maxWorkerThreads has a default value of 20 as does maxIoThreads.
So setting those will make no difference unless someone has set them in the machine.config to lower calues.
是的。如果未明确说明,则将按照此处
Yep. If they're not explicitly stated, the defaults will be used as specified here
http://support.microsoft.com/kb/821268
这是您需要的唯一一款。
http://support.microsoft.com/kb/821268
The one and the only one you need.