This documentation supports the 20.02 version of Remedy Action Request (AR) 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.

Note

You must use the Tomcat configuration tool to configure these settings and restart Tomcat.

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 pool1024 MB
    • Maximum memory pool1024 MB
    • Thread stack size — Leave this field empty
  4. Click the General tab.
  5. Click Start.
  6. Click OK.

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% -Xms1024m  -Xmx1024m

      where:

      • Xms is the initial (start) memory pool
      • Xmx is the maximum memory pool
      • Xss is the thread stack size
    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 -Xmx1024M"
      export CATALINA_OPTS="-Xms512M -Xmx1024M"

      where:

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

    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% -Xms1024m  -Xmx1024m

        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 -Xmx1024M"
        export CATALINA_OPTS="-Xms512M -Xmx1024M"

        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