Browse Source

执行器通讯线程优化,corePoolSize从256降低至32

xuxueli 7 years ago
parent
commit
e56731d78b

+ 2 - 1
doc/XXL-JOB官方文档.md View File

1240
 - 24、取消父子任务不可重复的限制,支持循环任务触发等特殊场景;
1240
 - 24、取消父子任务不可重复的限制,支持循环任务触发等特殊场景;
1241
 - 25、任务调度备注中标注任务触发类型,如Cron触发、父任务触发、API触发等等,方便排查调度日志;
1241
 - 25、任务调度备注中标注任务触发类型,如Cron触发、父任务触发、API触发等等,方便排查调度日志;
1242
 - 26、底层日志组件SimpleDateFormat线程安全问题修复;
1242
 - 26、底层日志组件SimpleDateFormat线程安全问题修复;
1243
-- 27、【迭代中】分片任务失败重试优化,仅重试当前失败的分片;
1243
+- 27、执行器通讯线程优化,corePoolSize从256降低至32;
1244
+- 28、【迭代中】分片任务失败重试优化,仅重试当前失败的分片;
1244
 
1245
 
1245
 
1246
 
1246
 ### TODO LIST
1247
 ### TODO LIST

+ 1 - 1
xxl-job-core/src/main/java/com/xxl/job/core/rpc/netcom/jetty/server/JettyServer.java View File

26
 			public void run() {
26
 			public void run() {
27
 
27
 
28
 				// The Server
28
 				// The Server
29
-				server = new Server(new ExecutorThreadPool());  // 非阻塞
29
+				server = new Server(new ExecutorThreadPool(32, 256, 60L * 1000));  // 非阻塞
30
 
30
 
31
 				// HTTP connector
31
 				// HTTP connector
32
 				ServerConnector connector = new ServerConnector(server);
32
 				ServerConnector connector = new ServerConnector(server);