Increasing the Java heap space
The default heap space allocated to the airlock-mgt-tomcat and airlock-mgt-agent processes might not be sufficient for very large configurations. See also System and hardware requirements.
The Java heap space can be increased to overcome java.lang.OutOfMemoryError issues.
Instruction
The amount of reserved memory should always be increased for both the airlock-mgt-tomcat and airlock-mgt-agent.
- Use
grep Xmxto display the current memory settings: AND
- Start with doubling the memory value in both files. In this example, we increase the reserved memory to
2Gin both properties files: - /opt/airlock/custom-settings/mgt-tomcat/java-options.properties
- /opt/airlock/custom-settings/mgt-agent/java-options.properties
- Example
... JAVA_OPTS="${JAVA_OPTS} -Xmx2G" ... - Restart the services:
AND
- Proceed to double the amount of reserved memory until the
java.lang.OutOfMemoryErrorvanishes. - Info
As experience has shown,
airlock-mgt-tomcatmay require about 4 times more reserved memory thanairlock-mgt-agent. Keep in mind that increasing the heap space for the Configuration Center Tomcat and the Airlock management agent will reduce the free memory that can be used by the Security Gate process.
Additional information
Instead of increasing the reserved memory for the Java Heap Space, we recommend decreasing the size and complexity of the mapping configuration using Dynamic back-end group selection. This can effectively lower the amount of required memory as well as increase the serviceability and management handling for admins.