如何在OutOfMemoryError之后恢复Quartz调度程序

时间:2016-06-08 22:19:20

标签: java spring scheduled-tasks quartz-scheduler schedule

我目前遇到以下异常,我知道这是因为内存不足异常,但我的石英调度程序停止工作,我需要恢复作业处理,任何想法?

unhandled Exception:
org.springframework.scheduling.quartz.JobMethodInvocationFailedException:
 Invocation of method 'updateScheduledJobs' on target class [class org.custom.scheduler.SchedulerManager] failed;
 nested exception is java.lang.OutOfMemoryError: Java heap space
        at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:320)
        at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:223)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: java.lang.OutOfMemoryError: Java heap space

2016-06-02 19:58:39,445 ERROR scheduler_Worker-6 org.quartz.core.ErrorLogger
--> Job (DEFAULT.updateScheduler threw an exception.
    org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception:
      org.springframework.scheduling.quartz.JobMethodInvocationFailedException:
      Invocation of method 'updateScheduledJobs' on target class 

0 个答案:

没有答案