This documentation supports the 22.1 version of Action Request System.
To view an earlier version, select the version from the Product version menu.

Increasing the JVM memory allocation and thread stack size

Use one of the following procedures to increase the JVM memory allocation and thread stack size by using the Tomcat configuration tool, from the command line or by creating a setenv file.

To increase the JVM memory allocation and thread stack size in the Tomcat configuration tool (Windows)

  1. Navigate to ApacheInstallDirectory/bin and open the TomcatXw.exe file. 
    (X denotes the Tomcat version number)
  2. Click the Java tab.
  3. Enter the following recommended values:
    • Initial memory pool—1024 MB
    • Maximum memory pool—2048 MB
    • Thread stack size — Leave this field empty
  4. Click the General tab.
  5. Click Start.
  6. Click OK.
  7. Restart Tomcat.

To increase the JVM memory allocation and thread stack size for Tomcat from the command line

    1. Open the catalina.bat file (TomcatInstallDirectory/bin/catalina.bat).
    2. Add the following line:

      set JAVA_OPTS=%JAVA_OPTS% -Xms2048m  -Xmx2048m

      where:

      • Xms is the initial (start) memory pool
      • Xmx is the maximum memory pool
      • Xss is the thread stack size
    3. Restart Tomcat.
    1. Open the catalina.sh file (TomcatInstallDirectory/bin/catalina.sh).
      (If you are unable to find the catalina.sh file, make the following changes in the startup.sh file)
    2. Add the following line:

      export JAVA_OPTS="-Xms512M -Xmx2048M"
      export CATALINA_OPTS="-Xms512M -Xmx2048M"

      where:

      • Xms is the initial (start) memory pool
      • Xmx is the maximum memory pool
      • Xss is the thread stack size
    3. Restart Tomcat.

    To increase the JVM memory allocation and thread stack size for Tomcat by setenv file

      1. Navigate to TomcatInstallDirectory/bin
      2. Create a setenv.bat file with the following code:

        set JAVA_OPTS=%JAVA_OPTS% -Xms2048m  -Xmx2048m

        where:

        • Xms is the initial (start) memory pool
        • Xmx is the maximum memory pool
        • Xss is the thread stack size
      3. Run the setenv.bat file and restart Tomcat.
      1. Navigate to TomcatInstallDirectory/bin
      2. Create a setenv.sh file with the following code:

        export JAVA_OPTS="-Xms512M -Xmx2048M"
        export CATALINA_OPTS="-Xms512M -Xmx2048M"

        where:

        • Xms is the initial (start) memory pool
        • Xmx is the maximum memory pool
        • Xss is the thread stack size
      3. Run the setenv.sh file and restart Tomcat.


      Was this page helpful? Yes No Submitting... Thank you

      Comments