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="-Xmx1024M
-XX:MaxPermSize=256m -Djava.awt.headless=true
-Dfile.encoding=UTF-8"
The line above sets the maximum java heap size to 1024M. 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=-Xmx1024M -XX:MaxPermSize=256m
-Djava.awt.headless=true -Dfile.encoding=UTF-8
The line above sets the maximum java heap size to 1024M. 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 tomcat6w.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