From 699fa889ef0e22f5c78b4de90edbdf24c610fc71 Mon Sep 17 00:00:00 2001 From: wangkang Date: Tue, 10 Apr 2018 09:39:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4=E7=BA=BF?= =?UTF-8?q?=E7=A8=8B=E6=B1=A0=E7=BA=BF=E7=A8=8B=E7=9A=84=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=BACPU=E6=95=B0=E9=87=8F+1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/itkk/udf/core/ApplicationConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/udf-starter-core/src/main/java/org/itkk/udf/core/ApplicationConfig.java b/udf-starter-core/src/main/java/org/itkk/udf/core/ApplicationConfig.java index aa2183a..d97b710 100644 --- a/udf-starter-core/src/main/java/org/itkk/udf/core/ApplicationConfig.java +++ b/udf-starter-core/src/main/java/org/itkk/udf/core/ApplicationConfig.java @@ -62,9 +62,9 @@ public class ApplicationConfig { public static class ThreadPoolProperties { /** - * 描述 : 默认线程池大小(默认:1) + * 描述 : 默认线程池大小(默认:CPU数量+1) */ - private Integer poolSize = 1; + private Integer poolSize = Runtime.getRuntime().availableProcessors() + 1; /** * 描述 : 线程优先级