Loading
Details for Garbage Collection

I want to see some of the details for the Garbage Collection job in Snow Inventory. I have looked at the "How can I tell if the Garbage Collection process is working correctly?" article and it was a good start.

 

However we'd like to be a able to automate and trend the runtime for the GC job.

 

We can do this by parsing log files, but as the article points out this may or may no be in every log file depending on when it runs.

 

So, I was wondering about more general questions:

How can we see the the "schedule" for GC? When is it supposed to run?

Other than log file entries where we parse out the runtimes, are there any database entries that could be used to monitor runtimes for GC?

 


  • Tom Lineen (Flexera Software)

    Hi Jeff,

     

    Re: When is it supposed to run ?

    By default the Garbage collector will run every 2 hours (when a DUJ is not in progress). This is controlled by the Interval setting in the sample module I've listed below.

    This means that it will kick off again 2 hours after it last completed (but not while the Data Update Job (DUJ) is running).

     

    ##Sample Garbage Collector module - to overwrite defaults

      <Module typeName="SnowSoftware.Inventory.Server.GarbageCollectionModule">

       <Setter propertyName="IsEnabled">true</Setter>

       <Setter propertyName="MaxSequenceNumbers">1</Setter>

       <Setter propertyName="SqlCommandTimeOut">240</Setter>

       <Setter propertyName="DaysOfCumulativeTableHistoryToKeep">91</Setter>

       <Setter propertyName="DaysOfMetricHistoryToKeep">30</Setter>

       <Setter propertyName="Interval">"2:00:00"</Setter>

      </Module>

     

    You should see GArbage collector results in the Snow Inventory Server log which you will find here - C:\ProgramData\SnowSoftware\Inventory\Server

     

    You should see a message for "Starting Garbage collection" and a corresponding "Garbage collection done" message as shown below.

    There will also be some detail of what it did, e.g.

     

    2023-02-24T17:54:37+11:00;garbage-collection;;;;Starting garbage collection. Interval=2.00 hours | BatchSize=2000000 | Timeout=180 seconds

    2023-02-24T17:55:18+11:00;garbage-collection;;;;Garbage collection done, total time elapsed: 00:00:41.0134081

    2023-02-24T17:55:18+11:00;garbage-collection;;;;Steps: MeteringTables: 0s, Users: 0s, Clients: 0s, Identity: 0.01s, SequenceTables: 389023 in 22.64s, ChangeSequenceNumbers: 306 in 0.12s, DataTables: 201 in 0.07s, DataApplication: 3263 in 14.8s, CloudMetering: 0.01s, ClientStorageData: 2.45s, CommandJobs: 96 in 0.77s, ServerMetricData: 0.15s

     

    I would not over-think the results displayed as the most important thing is that it is not throwing errors.

     

    Regards

    Tom

     

    Expand Post

Related  Product Forums


                     → Flexera One



                      → Snow Atlas



                      → FlexNet Manager



                      → Snow License Manager



                       → App Broker


       Need help finding an answer?


        Ask a Question →


Loading
Details for Garbage Collection