Memory Saving Mode

All activity output variables in a running process instance are stored in a memory, and hence consume memory. Memory saving mode allows memory used by an activity output variable to be released when the value of the variable is no longer needed.

In a memory saving mode, as each activity runs, the list of activity output variables is continuously evaluated to determine if subsequent activities in the process refer to the specific activity output variable. If no activities refer to the activity output variable, the memory used by it is released.

Memory Saving Mode can reduce the memory used by actively running process instances, as well as potentially improve the performance of checkpoints. By default, memory saving mode is enabled. This property enables the usage of memory saving mode, which frees activity output variables once they are no longer needed. The default value is true.

Memory saving is enabled at design-time and run-time.

To disable the Memory Saving Mode:

  • For design-time: To disable the memory saving mode, unselect the Save information to support memory saving mode checkbox available at Window > Preferences > BusinessWorks > Process Diagram in the Memory Saving Mode section. Then, to remove the memory saving variable, right-click on ActiveMatrix BusinessWorks™ Projects and select Refactor > Repair BusinessWorks Projects. In the dialog, select the Remove memory saving variables option. On clicking the Preview button, the variables that can be removed from different activities are displayed on the Preview page, then select OK.

  • For run-time: Configure the following bwengine property in the BW_JAVA_OPTS environment variable while running the application to disable the Memory Saving Mode:

    bw.engine.enable.memory.saving.mode=false.