forked from Big-Data-Lab/CET-cmd-2.0
调整连接池配置
This commit is contained in:
parent
ba1c0d0b6c
commit
978661eee2
|
@ -23,11 +23,11 @@ public class ThreadPoolManager {
|
|||
synchronized (ThreadPoolManager.class) {
|
||||
if (executor == null) {
|
||||
executor = new ThreadPoolExecutor(
|
||||
10,
|
||||
20,
|
||||
4,
|
||||
6,
|
||||
60L,
|
||||
TimeUnit.SECONDS,
|
||||
new LinkedBlockingQueue<>(100),
|
||||
new LinkedBlockingQueue<>(50),
|
||||
Executors.defaultThreadFactory(),
|
||||
new ThreadPoolExecutor.AbortPolicy()
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue