KB Article #163427
How to increase maximum heap space for Policy Studio to prevent java.lang.OutOfMemoryError
For releases 6.0.1 and after (including 7.7.x)
The Policy Studio console or log file is showing memory errors
Caused by: java.lang.OutOfMemoryError: Java heap space
The maximum heap space memory for Policy Studio can be increased by editing
.policystudio.ini found in the root of the Policy Studio installation.
The arguments after -vmargs are passed directly to the VM so to allow Policy Studio to take 1Gig of memory change the -Xmx parameter to ...
-Xmx1024m
Note, you can include the minimum value as well so that more memory is allocated when it starts, minimizing slow downs later while it pauses to grow. Ex:
-vmargs
-Xms768m
-Xmx1024m
Make changes incrementally, as PS will not start if you set a value that is too large; the Windows version of Policy Studio runs under a 32bit JVM and may not be able to start with values higher than 2 Gig.
------------------------------------------------------
For releases before 6.0.1
Place a jvm.xml into <installation home>/conf with the following content and adjust Xms and Xmx accordingly. Note if using Policy Studio from a Gateway installation the change will also effect the gateway's memory. A free standing version of Policy Studio should be used in this case.
==============conf/jvm.xml ============
<!--
Additional JVM settings argument that will increase both the min and max memory
JVM memory to 1G (1024m)
Xms = min
Xmx = max
-->
<ConfigurationFragment>
<VMArg name="-Xms1024m" />
<VMArg name="-Xmx1024m" />
</ConfigurationFragment>
==============================