我正在使用 spring-boot-starter-quartz 依赖项并使用 JDBC 持久性,但使用 Scheduler.scheduleJob() 方法的性能太慢了,我用 Jmeter 进行了几次测试,每秒处理 70 个事务,但如果我不这样做' t 使用 JDBC 持久性我每秒处理超过 800 个事务。
任何人都知道如何使用 JDBC 持久性提高 quart 的性能?
注意:这是我的 application.yaml 到石英并使用 mybatis 和 SQL_SERVER
spring:
quartz:
job-store-type: jdbc
jdbc:
initialize-schema: never
properties.org.quartz:
scheduler:
instanceName: QuartzScheduler
makeSchedulerThreadDaemon: true
instanceId : AUTO
batchTriggerAcquisitionMaxCount: 1
batchTriggerAcquisitionFireAheadTimeWindow: 0
threadPool:
class : org.quartz.simpl.SimpleThreadPool
threadCount : 10
jobStore:
class : org.quartz.impl.jdbcjobstore.JobStoreTX
driverDelegateClass : org.quartz.impl.jdbcjobstore.MSSQLDelegate
isClustered : true
clusterCheckinInterval : 20000
acquireTriggersWithinLock: false