gpt4 book ai didi

asp.net - .net 4.5 iis 高密度网络托管

转载 作者:行者123 更新时间:2023-12-02 21:31:32 26 4
gpt4 key购买 nike

.net 4.5 的更改日志中有 mention这个新设置

<configuration>
<!-- ... -->
<runtime>
<performanceScenario value="HighDensityWebHosting" />
<!-- ... -->

但是对于此设置实际影响的内容确实没有很好的描述,以及我们是否应该在生产环境中安装 .net 4.5 后更改它。有人可以分享有关此设置到底发生了什么变化的任何详细信息吗?

最佳答案

Tuning GC for high-density Web hosting: GC can impact a site’s memory consumption, but it can be tuned to enable better performance. You can tune or configure GC for better CPU performance (slow down frequency of collections) or lower memory consumption (that is, more frequent collections to free up memory sooner). To enable the GC tuning, you can select the HighDensityWebHosting setting in the aspnet.config...

Once a site is running, its use of the garbage-collector (GC) heap can be a significant factor in its memory consumption. Like any garbage collector, the .NET Framework GC makes tradeoffs between CPU time (frequency and significance of collections) and memory consumption (extra space that is used for new, freed, or free-able objects).

For the .NET Framework 4.5, instead of multiple standalone settings, a workload-defined configuration setting is available that enables all of the previously recommended GC settings as well as new tuning that delivers additional performance for the per-site working set.

此设置会影响垃圾收集器的行为。基于第二个引用,它是已发布的最佳实践设置以及新的调整设置的快捷方式。想必这些“新的调整设置”也会影响 GC 行为。

我浏览了 .Net 源代码,看看是否可以找到有关实现的更多信息,但我没有找到任何内容(有很多地方可以使用此设置)。

关于asp.net - .net 4.5 iis 高密度网络托管,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19963183/

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