better default

This commit is contained in:
fjy 2014-11-04 10:18:27 -08:00
parent 42cf20c9f1
commit c6d555e1f3
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ public class ServerConfig
{
@JsonProperty
@Min(1)
private int numThreads = 30;
private int numThreads = Math.max(10, (Runtime.getRuntime().availableProcessors() * 17) / 16 + 2) + 30;
@JsonProperty
@NotNull