Skip to main content

Cleanup Metering Service

Snow License Manager 9

Last revised: 2025-08-25

To improve performance and reduce the need for database maintenance, the Snow License Manager Cleanup Metering Service cleans up old and unused metering data in the Snow License Manager database.

Configure the Cleanup Metering Service

The Cleanup Metering Service is configured in Snow Management and Configuration Center and in the appsettings.json file.

In Snow Management and Configuration Center, do the following

  1. On the Configuration menu, click Basic Settings.

  2. Do the following:

    1. Enable the APPLICATION_CONCURRENCY_CLEANUP setting.

    2. Enable the METERING_HISTORY_CLEANUP setting.

    3. Configure the METERING_HISTORY_MONTHS setting.

    For more information, see Basic settings.

On your Snow License Manager application server, do the following:

  1. Open the appsettings.json file. The default path is C:\Program Files\Snow Software\Snow License Manager\Services\CleanupMetering.

  2. In the appsettings.json file, configure the following settings:

    SettingDescriptionDefault value
    ConcurrencySettings > RowsToDeleteThe maximum number of concurrency rows to keep when the service runs.1000000
    ConcurrencySettings > SchedulesThe time when the service runs and executes deletion of application concurrency data. The service can run once a day or several times a day according to the configured times.08:00
    14:00
    20:00
    MeteringSettings > RowsToDeleteThe maximum number of metering rows to keep when the service runs.1000000
    MeteringSettings > SchedulesThe time when the service runs and executes deletion of application metering data. The service can run once a day or several times a day according to the configured times.04:00
    10:00
    16:00
    SoftwareSettings > RowsToDeleteThe maximum number of software rows to keep when the service runs.1000000
    SoftwareSettings > SchedulesThe time when the service runs and executes deletion of software data. The service can run once a day or several times a day according to the configured times.06:00
    12:00
    18:00
    Serilog > MinimumLevel > DefaultThe minimum level of log severity.Information
    Serilog > MinimumLevel > Override > MicrosoftThe minimum level of log severity for log entries related to Microsoft products.Information
    Serilog > MinimumLevel > Override > SystemThe minimum level of log severity for log entries related to system events.Warning
  3. Save the appsettings.json file.

View the log files

In the log file on your Snow License Manager application server, you can verify that the Cleanup Metering Service has executed the background processes according to schedule and see how long it took to complete. The default path to the log file is C:\Program Files\Snow Software\Logs\CleanupMetering.

To view detailed information in the user interface of Snow License Manager, go to the Home page and then select Administration > Action log. For more information, see Action log.

note
  • The Cleanup Metering Service logs the background processes even when there is nothing to delete, for example, when no old data exists in the database or when the basic settings in Snow Management and Configuration Center are not enabled.

  • When you have enabled the basic settings in Snow Management and Configuration Center, the number of deleted rows and the processing time are logged.