【问题标题】:how to increase max ThreadPool Limit in asp.net Core如何在 asp.net Core 中增加最大线程池限制
【发布时间】:2020-07-18 21:51:11
【问题描述】:

如何增加 ASP.NET Core 中的最大线程池限制,默认值是多少?你能举个例子吗?
我知道在 ASP.NET 中默认的最大线程数限制是 5000,但是 ASP.NET Core 中的值是多少?
我遇到了“线程池耗尽”,需要增加它,因为公司中用户线程的数量自然会增加。

【问题讨论】:

标签: asp.net iis threadpool asp-net-core-spa-services


【解决方案1】:

.Net Core 3.1 Console App ThreadPool 最大线程信息: 结果(工作线程:32,767,异步 I/O 线程:1,000)

.Net Framework 4.8 Console App ThreadPool 最大线程信息: 结果(工作线程:2,047,异步 I/O 线程:1,000)

注意:使用 GetMaxThreads 方法

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-04-27
    • 2019-10-22
    • 2011-09-18
    • 1970-01-01
    • 2020-03-18
    • 1970-01-01
    • 2016-10-20
    • 2016-12-19
    相关资源
    最近更新 更多