Quartz如何取消检查更新

2025-02-26 04:19:11
推荐回答(5个)
回答1:

一直没有结果么? 好吧 我来填坑









true




或者启动参数
-Dorg.terracotta.quartz.skipUpdateCheck=true

或者启动的类中添加
System.setProperty("org.terracotta.quartz.skipUpdateCheck","true");

如果这个管用了 点个给力 省的别人总去看那个没用的网友采纳

回答2:

在tomcat/bin  目录下的catalina.sh下加入

JAVA_OPTS="$JAVA_OPTS -Dorg.terracotta.quartz.skipUpdateCheck=true"

这玩意好坑,我的centos服务器估计主机名配置不对,这个quartz检查更新直接导致启动时JVM崩溃:

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)

j  java.net.Inet6AddressImpl.lookupAllHostAddr(Ljava/lang/String;)[Ljava/net/InetAddress;+0

...

...

j  org.quartz.utils.UpdateChecker.run()V+1

j  java.util.TimerThread.mainLoop()V+221

j  java.util.TimerThread.run()V+1

v  ~StubRoutines::call_stub

回答3:

Quartz contains an "update check" feature that connects to a server to check
if there is a new version of Quartz
available for download. This check runs asynchronously and does not affect
startup/initialization time of Quartz, and it fails gracefully if the
connection cannot be made. If the check runs, and an update is found, it will
be reported as available in Quartz's logs.

You can disable the update check with the Quartz config property
"org.quartz.scheduler.skipUpdateCheck: true" or
the system property "org.terracotta.quartz.skipUpdateCheck=true" (which you can
set in your system environment or as a -D on the java command line). It is
recommended that you disable the update check for production deployments.

回答4:

更新失败,只需在applicationContext_quartz.xml其配置文件中设置下就可以了。






















true











回答5:

快三年了居然没人回答? 我也同求啊...真是个大坑