Documentation Center

Setting Up Garbage Collection

Garbage collection is the process by which Content Delivery clears old aggregated audit trail information. This procedure describes how to configure the frequency with which garbage collection occurs and how to enable and disable collection.

About this task

Procedure

  1. Log on to Legacy Content Delivery as admin.
  2. If you are in Legacy Content Delivery, select Home in the breadcrumb trail.
    The landing page appears.
  3. In the Administration Tools pane, select Manage Application.
    The Manage Application page appears.
  4. In the left pane, select Global Config.
  5. For the audit.garbagecollection.enable item, select Yes.
  6. Select Save.
  7. Edit ContentDelivery_home/conf.xml.
  8. Un-comment the line that defines the job for garbage collection: <job name="audit.garbagecollection" type="user" xquery="/db/LiveContent/ui/skins/base/xql/audit_garbagecollection.xql" period="3600000" delay="10000" repeat="1000000"/>
  9. Adjust the following values to set the timing of collection:
    OptionDescription
    periodFrequency, in milliseconds, that the collection occurs.
    delayDelay, in seconds, before collection occurs after restarting the Legacy Content Delivery service.
    repeatNumber of times to repeat collection.
  10. Restart the web server application or service.
  11. Validate that garbage collection is occurring by viewing the log on the client at ContentDelivery_home/logs/wrapper.log
    The success and failure messages appear like the following:
    Audit GarbageCollection: status=FAIL message=audit
    				collection does not exist 
    Audit GarbageCollection: status=DISABLED 
    Audit GarbageCollection: status=SUCCESS count=2
    For example, INFO | jvm 1 | 2010/06/01 15:15:19 | (Line: 63) Audit GarbageCollection: status=SUCCESS count=30