In order for Web Application Platform to run smoothly, you should configure the memory usage for the Java application server that Web Application Platform runs on (e.g., Apache Tomcat). The sections below explain how to do that in different operating systems.


To configure memory usage in Windows


  1. In the Java application server (on which Web Application Platform runs) home directory, go to the bin folder. For example, if you use Apache Tomcat, go to <tomcat_home>\bin.
  2. Using a plain text editor create the setenv.bat file in that directory.
  3. Copy and paste the following line to the setenv.bat file:

    set JAVA_OPTS=-Dfile.encoding=UTF-8 -Xms8G -Xmx8G
  4. Save and close the file.
  5. Restart the Java application server.


To configure memory usage in Linux and Mac


  1. In the Java application server (on which Web Application Platform runs) home directory, go to the bin folder. For example, if you use Apache Tomcat, go to <tomcat_home>/bin.
  2. Using a plain text editor create the setenv.sh file in that directory.
  3. Copy and paste the following lines to the setenv.sh file:

    export CATALINA_OPTS="$CATALINA_OPTS -Xms8G"
    export CATALINA_OPTS="$CATALINA_OPTS -Xmx8G"
  4. Save and close the file.
  5. Restart the Java application server.


Memory usage values

The memory usage values (Xms8G and Xmx8G) given in the above steps are recommended values for Web Application Platform, so you do not need to change them.