fix:定时任务线程数调整
This commit is contained in:
@@ -73,8 +73,8 @@ public class QuartzConfig {
|
|||||||
@Bean(name = "wmshandlerPool")
|
@Bean(name = "wmshandlerPool")
|
||||||
public ThreadPoolExecutor wmshandlerPool() {
|
public ThreadPoolExecutor wmshandlerPool() {
|
||||||
return new ThreadPoolExecutor(
|
return new ThreadPoolExecutor(
|
||||||
10, // corePoolSize
|
5, // corePoolSize
|
||||||
20, // maximumPoolSize
|
10, // maximumPoolSize
|
||||||
60, // keepAliveTime
|
60, // keepAliveTime
|
||||||
TimeUnit.SECONDS,
|
TimeUnit.SECONDS,
|
||||||
new LinkedBlockingQueue<>(1000),
|
new LinkedBlockingQueue<>(1000),
|
||||||
|
|||||||
Reference in New Issue
Block a user