随笔分类 -  quartz

摘要:quartz文档提到,如果在集群环境下,最好将配置项org.quartz.jobStore.txIsolationLevelSerializable设置为true问题:这个选项在mysql下会非常容易出现死锁问题。 2014-12-29 09:55:28.006 [QuartzScheduler_... 阅读全文
posted @ 2014-12-29 14:11 beiyeren 阅读(4354) 评论(1) 推荐(1)
摘要:问题:最近使用quartz集群,总是报deadlock问题,所以需要查看一下执行的sql导致的加锁冲突。步骤:1、在要测试的库中创建指定表innodb_lock_monitorcreate table innodb_lock_monitor(x int) engine=innodb;2、执行sqlB... 阅读全文
posted @ 2014-12-29 11:58 beiyeren 阅读(1652) 评论(0) 推荐(0)
摘要:spring 为quartz 提供了一个 继承 JobStoreCMT的 LocalDataSourceJobStore,主要是为了和spring更好的集成。public class LocalDataSourceJobStore extends JobStoreCMT { /** * Name ... 阅读全文
posted @ 2014-12-24 23:01 beiyeren 阅读(10245) 评论(1) 推荐(0)
摘要:现象: 1 [o.q.c.ErrorLogger] - An error occurred while scanning for the next triggers to fire. 2 org.quartz.JobPersistenceException: Couldn't acquire ne... 阅读全文
posted @ 2014-12-17 22:30 beiyeren 阅读(24580) 评论(2) 推荐(0)