Set Java options for JBoss

Before you begin

Before proceeding, review Installing PolicyCenter on JBoss in a production environment.

About this task

If you are running JBoss in a 64-bit JVM, it is possible that you need to increase the heap size to prevent JBoss from running out of memory. The specific values used for JAVA_OPTS in this example may not be suitable for your environment. Contact Guidewire Support if you need assistance.

Note: You can specify Java options in the JBoss standalone.conf.bat (Windows) or standalone.conf (Linux) file in in the EAP_HOME/bin directory, as this procedure describes, or by creating a JAVA_OPTS environment variable.

Procedure

  1. Open the JBoss file for you operating system.
    bin/standalone.conf.bat
    bin/standalone.conf
  2. Add lines similar to the following:
    set JAVA_OPTS=-Xms512M -Xmx2G -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -server 
    set JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/a:%JAVA_HOME%\lib\tools.jar 
  3. Save the file.
  4. Using Guidewire Studio, add the following entry to jboss-deployment-structure.xml next to the existing sun/net paths in that file (near line 21): <path name="com/sun/javadoc"/>

What to do next

After completing this procedure, proceed to Add a servlet definition for JBoss.