技术文章 - CS321502
在 ThingWorx 平台上执行服务后,会看到“脚本执行在 <~ScriptTimeout> 秒后终止”的错误信息。
已修改: 03-Jun-2026
适用于
- ThingWorx Platform 8.5 to 10.1
说明
- ThingWorx 服务在 30 秒后超时
- 在 ThingWorx 平台中,预计需要较长时间才能执行的自定义函数(例如等待数据库)超时。
- 在 ThingWorx 平台中,通过自定义端点查询会话审计日志不起作用。
- 使用 Thing 的服务批量创建多个对象时出现超时错误;如何在 ThingWorx 中更改服务脚本超时时间
- 查询超过 1000 行数据时,服务运行速度极慢并超时。
- 从 REST API 获取大量变更数据时发生服务超时
- 从旧版本升级后,ThingWorx 出现运行缓慢的情况。
- 加载运行时 UI 组件(例如网格、下拉列表和图表)数据时速度缓慢
- 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