Quartz Scheduler突然停止运行,没有异常错误 [英] Quartz Scheduler suddenly stop running and no exception error
问题描述
我有一些石英工作,每天晚上7点运行。突然间它无法运行。我检查我的server.log并没有抛出任何异常。任何人都知道可能出现什么问题?
I have some quartz job which was running everyday at 7pm. Suddenly it failed to run. I check my server.log and there are no exception thrown. Anyone have any idea what could be the issue?
提前致谢
推荐答案
我有一个类似的问题,但问题是,我在石英属性中有10个线程石英默认线程数,当我进行线程转储*我发现我在阻止 stat中有10个工作,这意味着我无法再运行任何线程。
I had a similar problem but the problem was, I had 10 threads quartz default number of threads in quartz properties and when I made thread dump* I found that I have 10 jobs in blocked stat, which means that I can't run any more threads.
快速修复此问题以增加quartz属性中线程池中的线程数。
A quick fix to this problem to increase the number of threads in the thread pool in the quartz properties.
实际的修复方法是查看我的代码以了解为什么我有10个被阻塞的线程。
The actual fix was reviewing my code to know why I had a 10 blocked threads.
*进行线程转储你可以使用 kill -3< java进程号> ,它将线程转储打印到您的应用程序标准输出,即如果您运行tomcat,则可以在 catalina.out 日志文件中找到它
*to do thread dump you can use kill -3 < java process number > which print the thread dump to your application standard output i.e if you running tomcat you find it in catalina.out log file
这篇关于Quartz Scheduler突然停止运行,没有异常错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!