|
|
@ -14,7 +14,7 @@ public class ThreadPoolConfig {
|
|
|
|
@Primary
|
|
|
|
@Primary
|
|
|
|
public ExecutorService sonarScannerPool() {
|
|
|
|
public ExecutorService sonarScannerPool() {
|
|
|
|
ThreadFactory sonarScannerPool = new CustomizableThreadFactory("sonarScanner-pool-");
|
|
|
|
ThreadFactory sonarScannerPool = new CustomizableThreadFactory("sonarScanner-pool-");
|
|
|
|
return new ThreadPoolExecutor(10, 10, 0,
|
|
|
|
return new ThreadPoolExecutor(50, 50, 0,
|
|
|
|
TimeUnit.SECONDS, new ArrayBlockingQueue<>(10000), sonarScannerPool,
|
|
|
|
TimeUnit.SECONDS, new ArrayBlockingQueue<>(10000), sonarScannerPool,
|
|
|
|
new ThreadPoolExecutor.AbortPolicy());
|
|
|
|
new ThreadPoolExecutor.AbortPolicy());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -23,7 +23,7 @@ public class ThreadPoolConfig {
|
|
|
|
@Bean("sonarQueryResultPool")
|
|
|
|
@Bean("sonarQueryResultPool")
|
|
|
|
public ExecutorService queryResultPool() {
|
|
|
|
public ExecutorService queryResultPool() {
|
|
|
|
ThreadFactory sonarQueryResultPool = new CustomizableThreadFactory("sonarQueryResult-pool-");
|
|
|
|
ThreadFactory sonarQueryResultPool = new CustomizableThreadFactory("sonarQueryResult-pool-");
|
|
|
|
return new ThreadPoolExecutor(5, 5, 0,
|
|
|
|
return new ThreadPoolExecutor(50, 50, 0,
|
|
|
|
TimeUnit.SECONDS, new ArrayBlockingQueue<>(10000),
|
|
|
|
TimeUnit.SECONDS, new ArrayBlockingQueue<>(10000),
|
|
|
|
sonarQueryResultPool,
|
|
|
|
sonarQueryResultPool,
|
|
|
|
new ThreadPoolExecutor.AbortPolicy());
|
|
|
|
new ThreadPoolExecutor.AbortPolicy());
|
|
|
|