The SQM command cache memory configuration settings depend on the total amount of memory available to Replication Server, the number of inbound and outbound queues, and the transaction profile, which depends on the command size.
See Replication Server Reference Manual > Replication Server Commands for the default value and valid range of values for the parameters.