Configuring the data grid cache memory watermarks

You can configure AS4 Microservice to display error messages when a specified amount of memory is being used by the data grid cache.

About this task

To receive messages when the cache is running out of memory, add two properties to an .xml file for the following memory usage levels:

Low watermark
When memory usage exceeds this level, system performance might be affected and you might look for ways to reduce the memory usage.
High watermark
When memory usage exceeds this level, system performance is affected and you must look for ways to reduce the memory usage.

Procedure

  1. Open the customerPostServer.xml file in the install_dir\Members\WXSContainer\usr\servers\WXSContainer directory.
  2. Add the low and high watermark properties to the file. For example, to set the low watermark to 60% of memory usage and the high watermark to 80% of memory usage, add these lines:
    <wxs.memory.monitor wxs.memory.monitor.lowWatermarkPercentage="60" wxs.memory.monitor.highWatermarkPercentage="80"/>

    The update looks like the following code if there are no other settings in the file:

    <server description="Custom server configuration applied at end">
       <wxs.memory.monitor wxs.memory.monitor.lowWatermarkPercentage="60" wxs.memory.monitor.highWatermarkPercentage="80"/>
    </server>
  3. Save and close the customerPostServer.xml file.
  4. Perform the following tasks on each container server in your configuration for the change to take effect:
    1. Stop each container member by entering the execute member stop container command.
    2. Start each container member by entering either the execute member start container command or (on Windows) the execute member start_service container command.