Article - CS227284
"java.lang.OutOfMemoryError" is seen in ThingWorx Platform log file
Modified: 04-Jul-2025
Applies To
- ThingWorx Platform 6.5 to 9.6
- Apache Tomcat
- Microsoft Windows
- Linux
Description
- Error retrieving a lot of data from external database
- Java Heap Space error retrieving large amounts of data from external database
- ThingWorx is starting but after some time it is freezing
- ThingWorx server which was previously communicating suddenly becomes unable to communicate
- After starting the ThingWorx instance, communication is possible via https but after a while the login popup doesn't appear
- Memory Utilization in critical state for ThingWorx Platform
- ThingWorx fails to start with an out of memory error
- ThingWorx shutdown unexpected within High Availability configuration
- Getting page unresponsiveness on browser while ThingWorx takes time to load the complete mashup
- Apache Tomcat fails to start with error message:
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
- ThingWorx Platform fails to start with one or more of the following errors:
- <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.<date>.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.<date>.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)...
- Data import failing with the following error being logged
- <ThingworxStorage>\logs\ApplicationLog.log
Error importing: error, Java heap space
- ThingWorx services fail to execute or ThingWorx becomes slow or inaccessible with the following errors being logged:
- <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
- All subsequent service calls show
[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
This is a printer-friendly version of Article 227284 and may be out of date. For the latest version click CS227284