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; }