3

我刚刚在 Windows 2000 机器上完成了 CF8 的全新安装。我有一个计划任务,我需要在这台机器上每 15 分钟运行一次,而这台机器几乎不做其他事情。

该任务是通过 CF 管理员正常设置的,但由于某种原因,当任务需要大约 5 分钟才能运行时,它会正常完成(我可以从调试输出和 cfstat 看到这一点),但调度程序不会重新安排任务。

调度日志显示任务开始执行,但没有重新调度的条目。例如:

[ProcessRecords] Executing at Wed May 20 10:30:00 BST 2009 

我已经超过了我的服务器超时。我在 CF 管理员中没有超时,并且这个特定的脚本有一个<cfsetting requesttimeout="43200" />标签集。控制台日志记录中没有例外。最后一点控制台日志记录是我的 .cfm 模板中的最后一个调试语句。

我确实注意到在较短的时间内运行的任务,例如在一分钟内,将正常重新安排。

有没有人遇到过这样的问题?

我很困惑。任何和所有的答复表示赞赏!

干杯,夏兰

4

1 回答 1

4

not for nothing, but i've never seen anything like this with cf8. are you sure that you have the latest hotfix and jvm installed? this might have been something in cf8 that was fixed in 8.01.

hotfix 2 for cf8.01

list of all hotfixes and updates for cf8.01

hotfix 3 for cf8

list of all hotfixes and updates for cf8

latest jvm

upgrade instruction for jvm

If you suspect that it's an uncaught exception causing the issue, then might I suggest logging portions of the process. Case in point, I had a similar problem with a scheduled task where it would just bottom out for no reason (never had the reschedule problem though). What I ended up doing to diagnose the problem was use cflog to write out portions of the process as they completed. This particular task too about 4 minutes to complete but ran through about 200 portions (it was a mass emailer for a bunch of clients).

I logged the when the portion started and completed along with how log it took. By doing so, i could see what portion would trip up the whole process and knew where to focus my attention.

于 2009-05-20T13:39:26.903 回答