Increasing the heap size allocated to the JVM running IAS in Jetty Web server

If you need to modify the JVM arguments for IAS running in Jetty Web server , you update the JVM arguments stored in <install path>\IAS\<version>\bin\ias-service and ias-service-wrapper.conf. For example, this is sometimes necessary if you need to allocate a larger heap size to the JVM that runs IAS.

The JVM arguments that affect heap size allocation are the following:
  • -Xms specifies the initial heap size allocated to the JVM.
  • -Xmx value specifies the maximum heap size allocated to the JVM.

To specify JVM arguments for IAS running in Jetty Web server:

  1. Stop the Endeca IAS Service.
  2. On the file system, navigate to <install path>\IAS\<version>\bin.
  3. Open ias-service (either .bat or .sh depending on your platform) in a text editor.
  4. Locate the JVM_ARGS settings and modify the values as necessary.

    For example, to increase the maximum available heap size to 3GB, change -Xmx to the following:

    SET JVM_ARGS=-Xms512m -Xmx3g ...
  5. Optionally, to add a new JVM option to ias-service, add a new line at the end of the file: SET JVM_ARGS=%JVM_ARGS% -D<otherJvmOption>=<otherJvmValue> and provide the necessary option and value.
  6. Save and close ias-service.
  7. If you are running IAS via the Endeca IAS Service, you must also modify the configuration file for the service, as follows:
    1. On the file system, navigate to <install path>\IAS\<version>\bin.
    2. Open ias-service-wrapper.conf in a text editor.
    3. Locate the wrapper.java.initmemory and wrapper.java.maxmemory settings and modify the values as necessary.
    4. Save and close ias-service-wrapper.conf.
    For example, to increase the maximum available RAM to 3GB, change wrapper.java.maxmemory to the following:
    wrapper.java.initmemory=512
    wrapper.java.maxmemory=3072
  8. Restart the Endeca IAS Service.