技术文章 - CS227284
ThingWorx Platform 日志文件中出现“java.lang.OutOfMemoryError”
已修改: 04-Jul-2025
适用于
- ThingWorx Platform 6.5 to 9.6
- Apache Tomcat
- Microsoft Windows
- Linux
说明
- 从外部数据库检索大量数据时出错
- 从外部数据库检索大量数据时出现Java 堆空间错误
- ThingWorx 正在启动,但一段时间后它冻结了
- 之前可以通信的 ThingWorx 服务器突然无法通信
- 启动 ThingWorx 实例后,可以通过 https 进行通信,但一段时间后登录弹出窗口不会出现
- ThingWorx 平台的内存利用率处于临界状态
- ThingWorx 因内存不足错误而无法启动
- ThingWorx 在高可用性配置中意外关闭
- ThingWorx 需要一些时间来加载完整的混搭,导致浏览器页面无响应
- Apache Tomcat 启动失败并显示错误消息:
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
- ThingWorx 平台启动失败,出现以下一个或多个错误:
- <ThingworxStorage>\logs\ErrorLog.log
java.lang.OutOfMemoryError: Java heap space
- <ThingworxStorage>\logs\ApplicationLog.log
Commons Daemon procrun stdout initialized Error occurred during initialization of VM Could not reserve enough space for <xxxxx>KB object heap java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Metaspace
- <tomcat_home>\logs\thingworx-foundation-stderr.<日期>.log
Exception in thread "WSExecutionProcessor-190" java.lang.OutOfMemoryError: Java heap space Exception in thread "xxx" Exception in thread "http-nio-8080-Acceptor" Exception in thread "WebSocket background processing" Exception in thread "Multipart message gc timer" Exception in thread "pool-20-thread-7" Exception in thread "Timer-x" Exception in thread "mssql-jdbc-shared-timer-core-565" Exception in thread "Timer-3" Exception in thread "C3P0PooledConnectionPoolManager[identityToken->2u2o5xav11gbysxf40298|7cac04c3]-HelperThread-#5" Exception in thread "TWEventProcessor-8" org.apache.coyote.AbstractProtocol$ConnectionHandler process Critical: Failed to fully process the request java.lang.OutOfMemoryError: Java heap space
- <tomcat_home>\logs\catalina.out
SEVERE [http-nio-8443-ClientPoller-1] org.apache.tomcat.util.net.NioEndpoint$Poller.run
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:714)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950)- <tomcat_home>\logs\catalina.<日期>.log
SEVERE [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployWARs Error waiting for multi-thread deployment of WAR files to complete
java.lang.InterruptedException
at java.util.concurrent.FutureTask.awaitDone(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:733)...- 数据导入失败,并记录以下错误
- <ThingworxStorage>\logs\ApplicationLog.log
Error importing: error, Java heap space
- ThingWorx 服务执行失败或 ThingWorx 运行缓慢或无法访问,并记录以下错误:
- <ThingworxStorage>\logs\ScriptErrorLog.log
[L: ERROR] [O: S.c.q.l.c.Logger] [I: ThingName] [U: <username>] [S: ] [P: ] [T: http-nio-8080-exec-23] Error in: ThingName.ServiceName javascript service. Message ::Java heap space [L: ERROR] [O: S.c.q.l.c.Logger] [I: ThingName] [U: <username>] [S: ] [P: ] [T: http-nio-8080-exec-27] Error in: ThingName.ServiceName javascript service. Message ::Java heap space: failed reallocation of scalar replaced objects
- <ThingworxStorage>\logs\ScriptLog.log
[L: ERROR] [O: S.c.t.d.e.DSLProcessor] [I: ] [U: <username>] [S: ] [T: http-nio-8443-exec-<Thread Number>] Execution error in service script [<Entity> <Service>] : Wrapped java.lang.Exception: Java heap space Cause: Java heap space
- 所有后续服务电话均显示
[L: ERROR] [O: S.c.t.d.e.DSLProcessor] [I: ] [U: <username>] [S: ] [T: http-nio-8443-exec-<Thread Number>] Execution error in service script [<Entity> <Service>] : Wrapped com.thingworx.common.exceptions.InvalidRequestException: Execution error in service script [<Entity> <Service>] : Wrapped java.lang.Exception: Java heap space Cause: Java heap space Cause: Execution error in service script [<Entity> <Service>] : Wrapped java.lang.Exception: Java heap space Cause: Java heap space
这是文章 227284 的 PDF 版本,可能已过期。最新版本 CS227284