How to read the current value of MaxConcurrentRequestsPerCPU
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
精彩评论