In order to control the increasing memory usage in batch messaging mode the following configuration method is provided:
Java:
container.ext().configure().clientServer().maxBatchQueueSize(size);
When this configuration method is used, client messages are flushed to the server when the message queue reaches the specified size in bytes.