Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure ThreadPool #16306

Closed
sadrover opened this issue Feb 5, 2016 · 2 comments
Closed

Configure ThreadPool #16306

sadrover opened this issue Feb 5, 2016 · 2 comments
Assignees
Labels
area-System.Threading question Answer questions and provide assistance, not an issue with source code or documentation.
Milestone

Comments

@sadrover
Copy link

sadrover commented Feb 5, 2016

Hello,

There is some way to configure the threadPool and the ConnectionLimit in DNX Core 50?
We use this configure in dnx 451:
ThreadPool.SetMinThreads(50, 50);
ThreadPool.SetMaxThreads(10000, 10000);
System.Net.ServicePointManager.DefaultConnectionLimit = int.MaxValue;

How can I put this parameters in core?

Thank you

@benaadams
Copy link
Member

For threadpool can use environment variables: https://github.com/dotnet/cli/issues/889#issuecomment-172975280

So min+max threads would be setting these environment vars:
ComPlus_ThreadPool_ForceMinWorkerThreads=50
ComPlus_ThreadPool_ForceMaxWorkerThreads=10000

@karelz
Copy link
Member

karelz commented Oct 13, 2016

We are adding APIs back in netstandard2.0 effort.

@karelz karelz closed this as completed Oct 13, 2016
@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 2.0.0 milestone Jan 31, 2020
@dotnet dotnet locked as resolved and limited conversation to collaborators Jan 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Threading question Answer questions and provide assistance, not an issue with source code or documentation.
Projects
None yet
Development

No branches or pull requests

5 participants