Clearing the data grid cache memory

If the usage of memory in the data grid cache exceeds the low and high watermark levels that you optionally defined, you can delete data with the purge set command.

About this task

The usage of too much memory in the data grid cache can affect system performance. Memory usage levels have the following definitions:

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 install_dir\Members\bin directory on a command line.
  2. Enter the following command to clear the data grid cache memory:
    execute purge set purge_type

    To determine the value for the purge_type parameter, see purge set command. Use the purge type for the types of transactions that you are running. For example, if you have inbound and outbound asynchronous transactions, the purge type is ProcessStateLogMap. You must enter the purge set command more than one time if you have different types of transactions.

    After the command starts, you are prompted for more parameters. At the Please provide the start time for purge schedule prompt, do not type a value. Press Enter to accept the default value of now. This action immediately starts the purge.

What to do next

If the cache memory watermark issues continue, take one of the following actions:
  • Add another container to either an existing node that does not have a container member or to a new node.
  • If cache memory watermark warnings are displayed but the performance of AS4 Microservice is not affected, change when messages are displayed when the cache is running out of memory.