Configuring JVM heap size in Jetty Web Application Server

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

To configure the JVM heap size or other JVM arguments:

  1. Make a backup of the file in Installation Directory\conf.
  2. Open 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:
  4. Replace ???with the preferred number, for example, WEB_SERVER_MAX_HEAP_SIZE=-Xmx2048m.
  5. Save the file.
  6. Stop the engine by using (for UNIX) or stopEngine.bat (for Microsoft Windows).
  7. Start the engine by using (for UNIX) or runEngine.bat (for Microsoft Windows).
    For more information, see the information on out of memory errors in Administrative troubleshooting.