setMaxMemSize
Syntax
setMaxMemSize(memSizeGB, [emergencyMemSizeGB])
Arguments
memSizeGB is a numeric scalar (in GB). It is greater than 0 but no greater
than maxMemoryPerNode (specified by DolphinDB license), which can be checked
with function license. Otherwise an error will be raised.
emergencyMemSizeGB(optional) is a numeric scalar (in GB) used to dynamically modify the size of the emergency memory area. It must be greater than 0 and less than memSizeGB. If not specified, the value remains unchanged from the emergencyMemSize configuration parameter.
Details
Modify the maximum memory and emergency memory allocated to DolphinDB online. This
command can only be executed by the administrator. Call
getClusterPerf().maxMemSize to check if the modification on
maximum memory has taken effect.
For more information on DolphinDB memory management configuration parameters and strategies, refer to the Reference - Memory Management.
The modified configuration will expire after the server is rebooted. To make it permanent, please change the configuration parameter maxMemSize and emergencyMemSize (see Memory Management).
