|
@@ -36,7 +36,7 @@ public class ThreadPoolConfig {
|
|
public ThreadPoolTaskExecutor asyncExecutor() {
|
|
public ThreadPoolTaskExecutor asyncExecutor() {
|
|
ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor();
|
|
ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor();
|
|
taskExecutor.setCorePoolSize(2);
|
|
taskExecutor.setCorePoolSize(2);
|
|
- taskExecutor.setMaxPoolSize(50);
|
|
|
|
|
|
+ taskExecutor.setMaxPoolSize(5);
|
|
taskExecutor.setQueueCapacity(50);
|
|
taskExecutor.setQueueCapacity(50);
|
|
taskExecutor.setKeepAliveSeconds(60);
|
|
taskExecutor.setKeepAliveSeconds(60);
|
|
taskExecutor.setThreadNamePrefix("asyncExecutor--");
|
|
taskExecutor.setThreadNamePrefix("asyncExecutor--");
|