Commit 6f93ddf0286b4b3872cf7b4ac676ad38442b1a79

Authored by 张志伟
1 parent 5f3630d1

fix(*): bug修复

- bug修复
fw-hestia-common/src/main/java/cn/fw/hestia/common/utils/ThreadPoolUtil.java
... ... @@ -21,11 +21,11 @@ public class ThreadPoolUtil {
21 21  
22 22 private ThreadPoolUtil() {
23 23 this.executor = ExecutorBuilder.create()
24   - .setCorePoolSize(20)
25   - .setMaxPoolSize(200)
  24 + .setCorePoolSize(30)
  25 + .setMaxPoolSize(100)
26 26 .setThreadFactory(new NamedThreadFactory("hestia-custom-", false))
27 27 .setAllowCoreThreadTimeOut(true)
28   - .setWorkQueue(new LinkedBlockingQueue<>())
  28 + .useArrayBlockingQueue(512)
29 29 .build();
30 30 }
31 31  
... ...