Article - CS367754

Unable to start / Restart ThingWorx Tomcat service

Modified: 25-Oct-2023   


Applies To

  • ThingWorx Platform 9.3 to 9.4

Description

  • Execution of the Start fails with below error
error 1067: The process terminated unexpectedly.
  • Control Panel > Administrative Tools > Services allows to stop and Start Tomcat service successfully
  • Execution of the Restart option fails with
error 1067: The process terminated unexpectedly.
  • hs_err_pid files are created in Tomcat folder with error
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 21474836480 bytes for Failed to commit area from 0x0000000300000000 to 0x0000000800000000 of length 21474836480.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (./src/hotspot/os/windows/os_windows.cpp:3387), pid=1856, tid=7592
#
# JRE version:  (11.0.14.1+10) (build )
  • The Restart fail issue only occurs when a large Xms/Xmx is set
  • Environment
    • Windows 2019
    • RAM: 32 Gb
    • Tomcat configured with Xms=Xmx=20Gb
    • paging file: 4Gb
  • Issue does not occurs if Xms=Xmx=16Gb
This is a printer-friendly version of Article 367754 and may be out of date. For the latest version click CS367754