アーティクル - 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 Platform は、次の 1 つ以上のエラーにより起動に失敗します。
- <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
最新バージョンはこちらを参照ください CS227284