ganjiaxin的gravatar头像
ganjiaxin 2015-03-27 11:17:54

java quartz为什么抛出Handling 4 trigger(s) that missed their scheduled fire-time异常?

  at com.bhm.webservice.practical.ctrl.PracticalProductionCtrl.ProductionYesterday(PracticalProductionCtrl.java:132)
at com.bhm.webservice.practical.thread.PracticalYesterdayThread.run(PracticalYesterdayThread.java:30)
2015-03-27 05:57:27,080 INFO [org.quartz.impl.jdbcjobstore.JobStoreTX] - Handling 4 trigger(s) that missed their scheduled fire-time.
2015-03-27 05:59:27,016 INFO [org.quartz.impl.jdbcjobstore.JobStoreTX] - Handling 4 trigger(s) that missed their scheduled fire-time.
2015-03-27 06:01:26,952 INFO [org.quartz.impl.jdbcjobstore.JobStoreTX] - Handling 10 trigger(s) that missed their scheduled fire-time.
2015-03-27 06:02:26,921 INFO [org.quartz.impl.jdbcjobstore.JobStoreTX] - Handling 1 trigger(s) that missed their scheduled fire-time.
2015-03-27 06:03:26,888 INFO [org.quartz.impl.jdbcjobstore.JobStoreTX] - Handling 4 trigger(s) that missed their scheduled fire-time.
2015-03-27 06:05:26,824 INFO [org.quartz.impl.jdbcjobstore.JobStoreTX] - Handling 4 trigger(s) that missed their scheduled fire-time.
2015-03-27 06:06:26,793 INFO [org.quartz.impl.jdbcjobstore.JobStoreTX] - Handling 5 trigger(s) that missed their scheduled fire-time.
2015-03-27 06:07:26,760 INFO [org.quartz.impl.jdbcjobstore.JobStoreTX] - Handling 4 trigger(s) that missed their scheduled fire-time.
2015-03-27 06:09:26,696 INFO [org.quartz.impl.jdbcjobstore.JobStoreTX] - Handling 4 trigger(s) that missed their scheduled fire-time.
 [15-3-27 6:11:20] [com.bhm.biz.alarm.processor.AlarmFileDealProcessor.process()42] [INFO] 告警失败文件读取重发定时任务开始!
 [15-3-27 6:11:20] [com.bhm.biz.alarm.processor.AlarmFileDealProcessor.excute()72] [INFO] -------file_path--------e:/gzcss_alarm/comm/
 [15-3-27 6:11:20] [com.bhm.biz.alarm.processor.AlarmFileDealProcessor.process()49] [INFO] 告警失败文件读取重发定时任务结束! 

----------------------------------------------------------------------------------------------

 2015-03-27 07:43:40,242 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列结束#######
2015-03-27 07:44:18,949 INFO [org.quartz.impl.jdbcjobstore.JobStoreTX] - Handling 1 trigger(s) that missed their scheduled fire-time.
2015-03-27 07:44:40,239 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列开始#######
2015-03-27 07:44:40,239 INFO [com.bhm.listener.MessageEngineScriptThread] - 更新告警规则脚本....
2015-03-27 07:44:40,491 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列结束#######
2015-03-27 07:45:18,917 INFO [org.quartz.impl.jdbcjobstore.JobStoreTX] - Handling 4 trigger(s) that missed their scheduled fire-time.
2015-03-27 07:45:40,488 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列开始#######
2015-03-27 07:45:40,488 INFO [com.bhm.listener.MessageEngineScriptThread] - 更新告警规则脚本....
2015-03-27 07:45:40,728 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列结束#######
2015-03-27 07:46:18,885 INFO [org.quartz.impl.jdbcjobstore.JobStoreTX] - Handling 6 trigger(s) that missed their scheduled fire-time.
2015-03-27 07:46:40,726 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列开始#######
2015-03-27 07:46:40,726 INFO [com.bhm.listener.MessageEngineScriptThread] - 更新告警规则脚本....
2015-03-27 07:46:40,976 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列结束#######
2015-03-27 07:47:18,853 INFO [org.quartz.impl.jdbcjobstore.JobStoreTX] - Handling 4 trigger(s) that missed their scheduled fire-time.
2015-03-27 07:47:40,973 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列开始#######
2015-03-27 07:47:40,973 INFO [com.bhm.listener.MessageEngineScriptThread] - 更新告警规则脚本....
2015-03-27 07:47:41,219 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列结束#######
2015-03-27 07:48:41,216 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列开始#######
2015-03-27 07:48:41,216 INFO [com.bhm.listener.MessageEngineScriptThread] - 更新告警规则脚本....
2015-03-27 07:48:41,475 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列结束#######
2015-03-27 07:49:18,789 INFO [org.quartz.impl.jdbcjobstore.JobStoreTX] - Handling 5 trigger(s) that missed their scheduled fire-time.
2015-03-27 07:49:41,472 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列开始#######
2015-03-27 07:49:41,472 INFO [com.bhm.listener.MessageEngineScriptThread] - 更新告警规则脚本....
2015-03-27 07:49:41,736 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列结束#######
2015-03-27 07:50:41,733 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列开始#######
2015-03-27 07:50:41,733 INFO [com.bhm.listener.MessageEngineScriptThread] - 更新告警规则脚本....
2015-03-27 07:50:42,004 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列结束#######
2015-03-27 07:51:18,725 INFO [org.quartz.impl.jdbcjobstore.JobStoreTX] - Handling 9 trigger(s) that missed their scheduled fire-time.
2015-03-27 07:51:42,001 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列开始#######
2015-03-27 07:51:42,001 INFO [com.bhm.listener.MessageEngineScriptThread] - 更新告警规则脚本....
2015-03-27 07:51:42,233 INFO [com.bhm.listener.MessageEngineScriptThread] - #######处理告警规则脚本消息队列结束####### 

----------------------------------------------------------------------------------------------

上面这段日志 就是一直卡这里了!卡了10多分钟!代码如下:

----------------------------------------------------------------------------------------------

public class MessageEngineScriptThread extends Thread {
    private static Logger log = Logger.getLogger(MessageEngineScriptThread.class);
    long i = 0;
    long time=0;
    public void run() {
        while (true) {
            try {
                // 第一次不进行处理.只启动线程
                if (i > 0) {
                    log.info("#######处理告警规则脚本消息队列开始#######");
                    if(time>=60*1000){
                        log.info("更新告警规则脚本....");
                        ScriptRepo sr = ScriptRepo.getInstance();
                        sr.reload();
                        time=0;
                    }
                    log.info("#######处理告警规则脚本消息队列结束#######");
                } else {
                    i++;
                    log.info("启动处理告警规则脚本消息队列线程");
                }
                time+=60 * 1000;
                Thread.sleep(60 * 1000);
                
            } catch (InterruptedException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
    }
}

所有回答列表(1)
uid556863的gravatar头像
uid556863  LV2 2015年3月27日

C语言啊

 

顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友