Summary: This page provides information about changing the RAM allocation for Console or Node services when deployed via Java JAR/Windows installers whether in 1.x or ≥ 2.x (enterprise and standalone mode). When using ≥ 2.x enterprise mode and you have deployed via Docker, RAM allocated to containers is managed by Docker.
RAM requirements for host servers are listed in CAST AIP for Dashboards - Hardware requirements or in Hardware requirements for CAST Imaging, however, "out of the box", when running Console/Node in a non-Docker deployment scenario (i.e. using the Java JAR/Windows installers), the Windows Services and batch scripts made available to run the services (which are all Java services) are configured to run with conservative RAM memory allocations as shown in the table below:
|Value||Console ≤ 2.2.0||Console ≥ 2.2.1||Details|
|Xmx value||1024MB||2048MB||Maximum memory allocation pool for a Java Virtual Machine (JVM).|
|Xms value||256MB||512MB||Initial memory allocation pool for a Java Virtual Machine (JVM).|
This means that even though the host server may have 64GB RAM available (for example), it will only give a maximum of 2GB to the JVM in which the various services run. You may therefore find that this is not sufficient and you may receive low memory/out of memory errors when running analyses or snapshots. If this is the case, CAST recommends increasing the Xmx and Xms values until your low memory/out of memory exceptions have been resolved as explained below.
CAST highly recommends using the following values in "large" deployment scenarios, for both Console front-end and all Nodes:
Modifying Windows Services memory settings
- Stop the relevant service
- Execute the following executable on the host server depending on your requirements:
The following configuration screen will be displayed. Click the Java tab (1) and make your changes as highlighted (2):
Click Apply and then OK to confirm the modification to the JVM memory settings, then restart the Windows Service to use the new settings.
Modifying default batch scripts
If you are using the default batch scripts to start the services, then you should modify the following files after having stopped the running service:
Locate the line containing the Xmx and Xms values and modify it as required. For example, for a Node:
Save the file and then restart the relevant service.