Maximum memory used by SORT

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX


The SORTMEMMAX environment variable specifies the upper memory limit used by the SORT statement when determining the optimal sort memory size.


The number of kilobytes of memory that the sort should not exceed when allocating sort memory. The default value is 65536 on Windows and 4096 on UNIX (for 64 MB and 4 MB, respectively). The minimum value allowed is 512, and there's no maximum limit.


Use SORTMEMMAX instead of SORTMEM, which has been deprecated.


SORTMEMMAX is used by the SORT verb in the runtime, either locally or when both files specified to the SORT are remote. SORTMEMMAX is used on the server when the sort is on the server. It is used by the runtime when the sort is local and not on a server.

Setting location

For a local file, in the environment or synergy.ini (Windows).

On a Windows server, in the Windows registry. Use the Synergy Configuration Program, or set SORTMEMMAX as follows:

On a UNIX server, in the synrc file in the /etc directory (for all clients) or the .synrc file in the users $HOME directory (for specific users).

Used by

Runtime, xfServer.