Configuring garbage collection (GC)

Garbage Collection (GC) logs are enabled by default. The GC logs are automatically added to show-tech.

Table 59.   Configuring garbage collection



Enable GC logging and rotation

sentry gc-log [file-count] [file-size]

file-count: The number of GC log files to use when rotating logs. Enter a number between 1 and 100. The default is 5.

file-size: The size of GC log file at which point the log will be rotated. Enter a file size between 8K and 300M. The default is 20M.

Disable Sentry GC logging and rotation

no sentry gc-log

Requires a restart of Sentry services for changes to take effect.