Skip to content

Increase workerThreads and completionPortThreads defaults for Helios #94

@kevinchalet

Description

@kevinchalet

The default values for the thread pool seem really low under Helios. I personally get workerThreads = completionPortThreads = 16 on a Core i7 machine with 4 cores and hyper-threading enabled (= 8 cores).

An ASP.NET Web Forms app running IIS Express on the same machine comes with far higher default values: workerThreads = 4096 and completionPortThreads = 1000.

You should consider increasing these values to get rid of these weird exceptions:

InvalidOperationException: There were not enough free threads in the ThreadPool to complete the operation.

In the meantime, manually calling ThreadPool.SetMaxThreads with higher values will do the trick.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions