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.
The default values for the thread pool seem really low under Helios. I personally get
workerThreads = completionPortThreads = 16on 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 = 4096andcompletionPortThreads = 1000.You should consider increasing these values to get rid of these weird exceptions:
In the meantime, manually calling
ThreadPool.SetMaxThreadswith higher values will do the trick.