Setting environment variables

After you install Java, set environment variables so that PolicyCenter can locate them. You might also need to set an environment variable for your application server.

Make these environment variables available in the user environment in which you plan to run PolicyCenter. The following table lists the variables to set for the different systems:

System

Variable

Example Values and Notes

Application server (all)

JAVA_HOME

Java 8
C:/Program Files/Java/jdk1.8.0_152
Java 11
C:/Program Files/Amazon Corretto/jdk11.0.3_7

The Java installer sets JAVA_HOME automatically, but Guidewire recommends that you verify that the installer set the value correctly.

Application server (Tomcat)

CATALINA_OPTS

Specifies the minimum and maximum memory used by Tomcat. For example, the following value for CATALINA_OPTS sets the direct JVM memory allocations to 1024 MB (initially) and 1024 MB (maximum), and also allocates 128 MB of background processing memory:

  -server -Xms1024M -Xmx1024M

Make your maximum JVM memory allocation (the –Xmx setting) the maximum likely available memory on the server. Guidewire tests have shown that performance of garbage collections are best if the -Xms and -Xmx are set to the same value. See Operating system limits on heap size for a detailed discussion.

For more information on configuration options, run the following command to view the built-in help for Java command line options:

  java –X