Configure Tomcat Java options (Linux)

Once the Tomcat service is installed, you must configure Tomcat Java options for a Linux server.

The Tomcat service must be installed on the server that will host the Web Collaborative Reviewer (WCR) application.

To configure Tomcat Java options:
  1. For the standalone install, create the setenv.sh file in %TomcatDir%/bin/ and add the following lines:
    #!/bin/sh
    JRE_HOME="/usr/java/jre1.6.xxx/bin/java"
    export JAVA_OPTS
    export JRE_HOME
                
    Important: The JAVA_OPTS= statement must appear on a single line.
    Note:

    Make sure that:

    • setenv.sh has the same owner and permissions as startup.sh.
    • The JRE_HOME statement specifies the path to the Java installation on your machine.
  2. Save and close setenv.sh.
  3. For the service install, edit the tomcat6.conf file located in %TomcatDir%/conf/.
  4. Search for the line beginning with JAVA_OPTS= and merge the current parameters with the ones shown below.
    "-Xms512m -Xmx2048m"
  5. Restart Tomcat.