server-memory-threshold
Size threshold of server process at which action needs to be taken to manage responses
Syntax
--server-memory-threshold SIZE
Description
server-memory-threshold
sets the memory size limit of a server process. If
the size of a server process size exceeds SIZE
, then responses need
to be either archived or purged by setting server-memory-threshold-overflow-action
to
archive_responses
or purge_responses
,
respectively. If server-memory-threshold
is not set, then the
responses will be bound to the server process causing the memory footprint of the server
process to keep increasing. As a best practice, it is recommended that a client process
delete a request after usage in order to prevent the memory of the server process from
growing.
Parameters
size
Threshold size of the server process.
Examples
For on-premises server instances created using the command line, update this server configuration property in the
main_config
server configuration file.For on-premises server instances created using the dashboard and for server deployments in the cloud, use the dashboard and cloud dashboard, respectively, to update the server configuration property.
Configure Using Command Line
In the main_config
file, set the
server-memory-threshold
and
server-memory-threshold-overflow-action
properties to the
following:
--server-memory-threshold 500MB --server-memory-threshold-overflow-action archive_responses
In the main_config
file, set the
server-memory-threshold
and
server-memory-threshold-overflow-action
property to the
following:
--server-memory-threshold 2GB --server-memory-threshold-overflow-action purge_responses
Configure Using Dashboard
In the dashboard, in the Settings tab of your server instance, under Server Memory:
Enter the following for the Server Memory Threshold property:
500MB
Select the following for the Server Memory Threshold Overflow Action property:
archive_responses
In the dashboard, in the Settings tab of your server instance, under Server Memory:
Enter the following for the Server Memory Threshold property:
2GB
Select the following for the Server Memory Threshold Overflow Action property:
purge_responses