This article will describe how to increase memory allocated to the 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 among other reasons, it may be necessary to assign more memory to the Policy Manager.
In the Policy Manager error report or logs, the following stack trace may be seen as well if it runs out of memory:
java.lang.OutOfMemoryError: Java heap space
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:
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.