Increase the CAMEL Notifier Java Heap Size

This topic explains how to increase the Java heap size for the CAMEL Notifier server. You would do this if you have out-of-memory errors that cause the Notifier to fail.

About this task

This task references the Oracle Java -Xmssize and -Xmxsize options. For more information about the default settings and information about those options in general see the Oracle Java documentation.

For more information about the MATRIXX environment variables, see the discussion about container directories and environment variables in MATRIXX Installation and Upgrade.

Procedure

  1. Stop the CAMEL Notifier, if it is running, with the following command:
    sudo systemctl stop mtx_notifier_camel
  2. Open the /etc/default/mtx_notifier file for editing.
  3. Add the following line to the file:
    MTX_NOTIFIER_CAMEL_START_ARGS="-Xms1G -Xmx2G"
    Note: This example sets the starting size to 1 GB and the maximum size to 2 GB.
  4. Save and close the file.
  5. Restart the CAMEL Notifier with the following command.
    sudo systemctl start mtx_notifier_camel