技术文章 - CS321502

在 ThingWorx 平台上执行服务后,会看到“脚本执行在 <~ScriptTimeout> 秒后终止”的错误信息。

已修改: 19-Feb-2026   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • 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