开发者

How to read the current value of MaxConcurrentRequestsPerCPU

开发者 https://www.devze.com 2023-03-17 17:59 出处:网络
How can I read the current value of the MaxConcurrentRequestsPerCPU setting from code, i.e. for the current application pool? I don\'t mean reading it literally from a config file, but rather read the

How can I read the current value of the MaxConcurrentRequestsPerCPU setting from code, i.e. for the current application pool? I don't mean reading it literally from a config file, but rather read the "resolved" value that is currently effective, regardless of where it was set (i.e. registry, machine开发者_运维问答.config, web.config...)


Try to read

 System.Web.Hosting.HostingEnvironment.MaxConcurrentRequestsPerCPU

This only works for .NET 4.x

0

精彩评论

暂无评论...
验证码 换一张
取 消