Przeglądaj źródła

默认quartz线程数调整为50

xuxueli 7 lat temu
rodzic
commit
05b2a60c0e

+ 3 - 2
doc/XXL-JOB官方文档.md Wyświetl plik

701
 
701
 
702
 ```
702
 ```
703
 org.quartz.threadPool.class: org.quartz.simpl.SimpleThreadPool
703
 org.quartz.threadPool.class: org.quartz.simpl.SimpleThreadPool
704
-org.quartz.threadPool.threadCount: 15
704
+org.quartz.threadPool.threadCount: 50
705
 org.quartz.threadPool.threadPriority: 5
705
 org.quartz.threadPool.threadPriority: 5
706
 org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread: true
706
 org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread: true
707
 ```
707
 ```
717
 理论上采用推荐机器配置 "4核4G内存" + "配置1s运行1次密集任务" + "调度中心与执行器ping延迟10ms(0.01s)" 的情况下,
717
 理论上采用推荐机器配置 "4核4G内存" + "配置1s运行1次密集任务" + "调度中心与执行器ping延迟10ms(0.01s)" 的情况下,
718
 
718
 
719
     - 单线程支撑任务量  :1 / 1 * 0.01 = 100个任务
719
     - 单线程支撑任务量  :1 / 1 * 0.01 = 100个任务
720
-    - 15个线程支撑任务量:15 / 1 * 0.01 = 1500个任务
720
+    - 50个线程支撑任务量:50 / 1 * 0.01 = 5000个任务
721
 
721
 
722
 实际场景中,由于调度中心与执行器ping延迟不同、DB读写耗时不同、任务调度密集程度不同,会导致任务量上限会上下波动。
722
 实际场景中,由于调度中心与执行器ping延迟不同、DB读写耗时不同、任务调度密集程度不同,会导致任务量上限会上下波动。
723
 
723
 
1235
 - 16、任务报表成功、失败和进行中统计问题修复;
1235
 - 16、任务报表成功、失败和进行中统计问题修复;
1236
 - 17、自研Log组件参数占位符改为"{}",并修复打印有参日志时参数不匹配导致报错的问题;
1236
 - 17、自研Log组件参数占位符改为"{}",并修复打印有参日志时参数不匹配导致报错的问题;
1237
 - 18、核心依赖Core内部国际化处理;
1237
 - 18、核心依赖Core内部国际化处理;
1238
+- 19、默认Quartz线程数调整为50;
1238
 
1239
 
1239
 
1240
 
1240
 ### TODO LIST
1241
 ### TODO LIST

+ 1 - 1
xxl-job-admin/src/main/resources/quartz.properties Wyświetl plik

10
 org.quartz.scheduler.wrapJobExecutionInUserTransaction: false
10
 org.quartz.scheduler.wrapJobExecutionInUserTransaction: false
11
 
11
 
12
 org.quartz.threadPool.class: org.quartz.simpl.SimpleThreadPool
12
 org.quartz.threadPool.class: org.quartz.simpl.SimpleThreadPool
13
-org.quartz.threadPool.threadCount: 15
13
+org.quartz.threadPool.threadCount: 50
14
 org.quartz.threadPool.threadPriority: 5
14
 org.quartz.threadPool.threadPriority: 5
15
 org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread: true
15
 org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread: true
16
 
16