How to Increase Memory Allocation to Policy Manager
Updated On:30-09-2019 08:08
STARTER PACK-7, CA Rapid App Security, CA API Gateway, CA API Gateway, CA API Gateway
This article will describe how to increase memory allocated to Policy Manager used for writing and editing policies held on the API Gateway.
While not always needed, sometimes when there are a lot of policies or very large policies to load or policy validation is enabled/required, it can be desirable and sometimes necessary to assign more memory to Policy Manager.
This applies to all supported versions of Policy Manager.
To edit the memory allocated to the Policy Manager Java application, the following steps will need to be followed:
Close any running sessions of Policy Manager.
Open the following file in a text editor: Layer 7 Policy Manager.ini
This file is usually found at C:\Program Files (x86)\Layer 7 Technologies\Layer 7 Policy Manager #.#\Layer 7 Policy Manager.ini on a Windows system.
Find the value starting with "-Xmx".
By default, it may read as "-Xmx256M".
Change to "-Xmx1024M" or "-Xmx2048M" to represent 1 GB or 2 GB respectively.
Save the Layer 7 Policy Manager.ini file.
Start Policy Manager and test.
Repeat the above steps if necessary until the memory is sufficient for the use-case.
Another quick improvement to Policy Manager running quicker while opening and editing policies is disabling Policy Validation Feedback (found under Preferences in Policy Manager), if validation is not required for the use-case. Validation can always be run manually when needed too if it is disabled.