When Itential Platform starts a service (application or adapter), the service loads its configuration data at startup. Service configuration for each application or adapter is managed in the Service Config editor in Admin Essentials.
This page covers service configuration for profiling logs and setting maximum memory size.
Itential Platform has a built-in CPU profiler to help troubleshoot performance issues and high CPU usage. It is based on V8 profiling and Node.js simple profiling.
Profiling can be enabled for Itential Platform and select applications and adapters in release version 2020.1 and higher.
Do not enable profiling in production deployments. It may have a significant impact on performance.
You must have write permission to the working directory to create profiling logs.
In a Docker environment, set the following environment variable in /docker/startContainer:
In a shell environment, use the --prof CLI option:
Expand the Applications or Adapters collection in the left sidebar and select the appropriate app or adapter.
From the Configuration tab, toggle Advanced View in the upper-right to display the Service Config editor.
The profiler writes data to a file in the working directory named isolate-*-v8.log.
To convert the log into a readable format, use the Node.js --prof-process CLI option:
Open the resulting file in your preferred editor to inspect the profiling data.
After analyzing the profiling data, delete the log files to reclaim disk space.
As memory consumption approaches its limit for a service process, use maxOldSpaceSize to increase the memory limit. Add it to systemProps in the service config by navigating to Admin Essentials > Applications > Configuration > Service Config.
Sample configuration: