Set Java options for JBoss
Before you begin
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
-
Open the JBoss file for you operating system.
bin/standalone.conf.bat bin/standalone.conf -
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 -serverset JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/a:%JAVA_HOME%\lib\tools.jar - Save the file.
-
Using Guidewire Studio, add the following entry to
jboss-deployment-structure.xml next to the existing
sun/netpaths 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.
