|
@@ -1,4 +1,5 @@
|
|
|
using System;
|
|
|
+using System.Threading;
|
|
|
using System.Web;
|
|
|
|
|
|
namespace ServiceStackBenchmark
|
|
@@ -7,6 +8,10 @@ namespace ServiceStackBenchmark
|
|
|
{
|
|
|
protected void Application_Start(object sender, EventArgs e)
|
|
|
{
|
|
|
+ var threads = 40 * Environment.ProcessorCount;
|
|
|
+ ThreadPool.SetMaxThreads(threads, threads);
|
|
|
+ ThreadPool.SetMinThreads(threads, threads);
|
|
|
+
|
|
|
new AppHost().Init();
|
|
|
}
|
|
|
|