From 6fb9fb7db13b43e92a92917314675a1e7ae3d74c Mon Sep 17 00:00:00 2001 From: youys <1272586223@qq.com> Date: Tue, 16 Jul 2024 18:42:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(ThreadPoolConfig)=EF=BC=9A=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=BA=BF=E7=A8=8B=E6=B1=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/net/educoder/ecsonar/config/ThreadPoolConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/educoder/ecsonar/config/ThreadPoolConfig.java b/src/main/java/net/educoder/ecsonar/config/ThreadPoolConfig.java index 75d4e1d..5565360 100644 --- a/src/main/java/net/educoder/ecsonar/config/ThreadPoolConfig.java +++ b/src/main/java/net/educoder/ecsonar/config/ThreadPoolConfig.java @@ -14,7 +14,7 @@ public class ThreadPoolConfig { @Primary public ExecutorService sonarScannerPool() { ThreadFactory sonarScannerPool = new CustomizableThreadFactory("sonarScanner-pool-"); - return new ThreadPoolExecutor(10, 10, 0, + return new ThreadPoolExecutor(50, 50, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(10000), sonarScannerPool, new ThreadPoolExecutor.AbortPolicy()); } @@ -23,7 +23,7 @@ public class ThreadPoolConfig { @Bean("sonarQueryResultPool") public ExecutorService queryResultPool() { ThreadFactory sonarQueryResultPool = new CustomizableThreadFactory("sonarQueryResult-pool-"); - return new ThreadPoolExecutor(5, 5, 0, + return new ThreadPoolExecutor(50, 50, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(10000), sonarQueryResultPool, new ThreadPoolExecutor.AbortPolicy());