From e969146eb4c4a911b3387da8981a4eb6796f8a52 Mon Sep 17 00:00:00 2001 From: "chen.ma" Date: Fri, 31 Dec 2021 08:01:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=85=AC=E5=85=B1=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E7=BA=BF=E7=A8=8B=E6=B1=A0=E9=85=8D=E7=BD=AE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/hippo4j/starter/common/CommonDynamicThreadPool.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/common/CommonDynamicThreadPool.java b/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/common/CommonDynamicThreadPool.java index 979e47d4..e6f161d7 100644 --- a/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/common/CommonDynamicThreadPool.java +++ b/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/common/CommonDynamicThreadPool.java @@ -18,10 +18,10 @@ public class CommonDynamicThreadPool { DynamicThreadPoolExecutor poolExecutor = (DynamicThreadPoolExecutor) ThreadPoolBuilder.builder() .dynamicPool() .threadFactory(threadPoolId) - .poolThreadSize(3, 5) - .keepAliveTime(1000L, TimeUnit.SECONDS) + .poolThreadSize(2, 4) + .keepAliveTime(60L, TimeUnit.SECONDS) .alarmConfig(1, 80, 80) - .workQueue(QueueTypeEnum.RESIZABLE_LINKED_BLOCKING_QUEUE, 512) + .workQueue(QueueTypeEnum.RESIZABLE_LINKED_BLOCKING_QUEUE, 1024) .build(); return poolExecutor; }