Modifying the Heap Size

Linux/*nix

  • Stop Cascade Server
  • Edit the file cascade.sh (found in the Cascade root directory)
  • Add/Modify the -Xmx and -Xms parameters on line 2:
      export JAVA_OPTS="-Xmx768M -XX:MaxPermSize=128m -Djava.awt.headless=true -Dfile.encoding=UTF-8"
    

    The line above sets the maximum java heap size to 768M. An -Xms value can also be added to specify an initial heap size.

  • Restart Cascade Server

Windows (command line)

  • Stop Cascade Server
  • Edit the file cascade.bat (found in the Cascade root directory)
  • Add/Modify the -Xmx and -Xms parameters on line 3:
      set JAVA_OPTS=-Xmx768M -XX:MaxPermSize=128m -Djava.awt.headless=true -Dfile.encoding=UTF-8
    

    The line above sets the maximum java heap size to 768M. An -Xms value can also be added to specify an initial heap size.

  • Restart Cascade Server

Windows (service)

  • Navigate to the \tomcat\bin directory and find the file named tomcat5w.exe
  • Make a copy of this file and rename it cascadew.exe (note: if cascadew.exe already exists, skip to the next step)
  • Double-click the file cascadew.exe
  • In the configuration UI click on the Java tab
  • Enter a value for the Initial memory pool field
  • Enter a value for the Maximum memory pool field
  • Click Apply
  • Restart the Cascade service