技术文章 - CS321502
在 ThingWorx 平台上执行服务后,会看到“脚本执行在 <~ScriptTimeout> 秒后终止”的错误信息。
已修改: 19-Feb-2026
适用于
- ThingWorx Platform 8.5 to 10.0
说明
- ThingWorx 服务在 30 秒后超时
- 在 ThingWorx 平台中,一个预计需要较长时间执行的自定义函数(例如等待数据库)最终会超时。
- 在 ThingWorx 平台中,通过自定义端点查询会话审计日志的功能无法正常工作。
- 使用 Thing 的服务批量创建多个对象时出现超时错误,如何在 ThingWorx 中更改服务脚本超时设置?
- 服务运行速度极慢,尝试查询超过 1000 行数据时会超时。
- 从 REST API 获取大量变更数据时发生服务超时
- 从旧版本升级后,ThingWorx 出现运行缓慢的情况。
- ThingWorx 服务失败,Composer 中显示以下错误。
Error executing service. Message ::Execution of Script terminated after : <~ScriptTimeout> seconds. Timeout configured for <ScriptTimeout> seconds. - See Script Error Log for more details
- 位于<ThingworxStorage>\logs 目录下的 ThingWorx Platform ApplicationLog.log 文件显示以下内容:
[L: ERROR] [O: ctwThings] [I: ] [U: <User>] [S: ] [P: ] [T: https-jsse-nio-8443-exec-<Thread>] Execution of Script terminated after : <~ScriptTimeout> seconds. Timeout configured for <ScriptTimeout> seconds. [L: WARN] [O: ctwBaseService] [I: ] [U: <User>] [S: ] [P: ] [T: https-jsse-nio-8443-exec-<Thread>] Transaction has been marked as a failure for request /Thingworx/Things/<Entity Name>/Services/<Service Name>
这是文章 321502 的 PDF 版本,可能已过期。最新版本 CS321502