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 Content Delivery as admin.
  2. If you are in a Content Delivery tool, click Home in the breadcrumb trail.
    The Content Delivery landing page appears.
  3. In the Administration Tools pane, click Manage Application.
    The Manage Application page appears.
  4. In the left pane, click Global Config.
  5. For the audit.garbagecollection.enable item, click Yes.
  6. Click 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 Content Delivery service.
    repeatNumber of times to repeat collection.
  10. Restart the application or service.
    1. If you are using a third-party web application server, restart the application server's service. For example, if you are using Apache Tomcat, restart the Apache Tomcat service
    2. If you are using the bundled web application server, restart the Content Delivery database.
      • On Windows, restart the ContentDelivery XML Database service.
      • On Linux, log in as the root user, and type the following at a command prompt:

        /etc/init.d/SDL_LiveContent restart

  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