NB! It seems this console command is not compatible with CS2.
Command Profile

SV_MINUPTIMELIMIT

CS:GO

This commands sets the minimum uptime hours required for the server to be stopped due to a memory amount above the amount set by sv_memlimit. Default is 0 (disabled).

Syntax
sv_minuptimelimit [Hours]

Description

This commands sets the minimum uptime hours required for the server to be stopped due to a memory amount above the amount set by sv_memlimit. Default is 0 (disabled).

How To Use sv_minuptimelimit

  1. Enable the developer console in Counter-Strike settings.
  2. Open the console with the tilde key (~).
  3. Enter sv_minuptimelimit [Hours], replacing bracketed arguments with the value you want, then press Enter.

This legacy command is not currently listed as compatible with Counter-Strike 2.

Syntax And Arguments

sv_minuptimelimit [Hours]
Hours The minimum amount of hours to be reached before the server can be stopped due to sv_minuptimelimit.