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
-
On the Configuration menu, click Basic Settings.
-
Do the following:
-
Enable the APPLICATION_CONCURRENCY_CLEANUP setting.
-
Enable the METERING_HISTORY_CLEANUP setting.
-
Configure the METERING_HISTORY_MONTHS setting.
For more information, see Basic settings.
-
On your Snow License Manager application server, do the following:
-
Open the appsettings.json file. The default path is
C:\Program Files\Snow Software\Snow License Manager\Services\CleanupMetering
. -
In the appsettings.json file, configure the following settings:
Setting Description Default value ConcurrencySettings > RowsToDelete The maximum number of concurrency rows to keep when the service runs. 1000000 ConcurrencySettings > Schedules The 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:00MeteringSettings > RowsToDelete The maximum number of metering rows to keep when the service runs. 1000000 MeteringSettings > Schedules The 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:00SoftwareSettings > RowsToDelete The maximum number of software rows to keep when the service runs. 1000000 SoftwareSettings > Schedules The 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:00Serilog > MinimumLevel > Default The minimum level of log severity. Information Serilog > MinimumLevel > Override > Microsoft The minimum level of log severity for log entries related to Microsoft products. Information Serilog > MinimumLevel > Override > System The minimum level of log severity for log entries related to system events. Warning -
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.
-
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.