Configuring JVM heap size in Jetty Web Application Server

To maximize performance, configure JVM heap size in Jetty Web Application Server.

About this task

To configure the JVM heap size or other JVM arguments:

Procedure

  1. Make a backup of the InstallationInfo.properties file in Installation Directory\conf.
  2. Open InstallationInfo.properties in Installation Directory\conf.with a text editor such as Notepad on Microsoft Windows or vi on UNIX.
  3. Look for the line that starts with WEB_SERVER_MAX_HEAP_SIZE. If the line is there, change the value to the preferred number. If the line is not there, add a line at the end of the file as shown in the following example:
    WEB_SERVER_MAX_HEAP_SIZE=-Xmx???m
  4. Replace ???with the preferred number, for example, WEB_SERVER_MAX_HEAP_SIZE=-Xmx2048m.
  5. Save the file.
  6. Stop the engine by using stopEngine.sh (for UNIX) or stopEngine.bat (for Microsoft Windows).
  7. Start the engine by using runEngine.sh (for UNIX) or runEngine.bat (for Microsoft Windows).
    For more information, see the information on out of memory errors in Administrative troubleshooting.