Datastore Garbage Collection in AEM 6.0 | Community
Skip to main content
Level 4
April 12, 2019
Solved

Datastore Garbage Collection in AEM 6.0

  • April 12, 2019
  • 1 reply
  • 1664 views

Dear All,

We have 2 options to run garbase collection

1) runDataStoreGarbageCollection(java.lang.Boolean delete) at /system/console/jmx/com.adobe.granite%3Atype%3DRepository

2) startRevisionGC() at /system/console/jmx/org.apache.jackrabbit.oak%3Aid%3D15%2Cname%3D"repository+manager"%2Ctype%3D"RepositoryManagement"

Which one is correct and when to run what? What is the difference between both?

Thank you in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by user05162

runDataStoreGarbageCollection - This will trigger the data store garbage collection.

startRevisionGC() - This will trigger oak revision cleanup(Compaction) which should not be run on AEM version 6.2 and below.

To answer your question, you need to run "runDataStoreGarbageCollection" to run datastore Garbage collection.

You can find other ways of running DSGC at [1]

That being said, AEM 6.1 is out of support, please upgrade to the latest version of AEM.

[1] Data Store Garbage Collection

1 reply

user05162Adobe EmployeeAccepted solution
Adobe Employee
April 15, 2019

runDataStoreGarbageCollection - This will trigger the data store garbage collection.

startRevisionGC() - This will trigger oak revision cleanup(Compaction) which should not be run on AEM version 6.2 and below.

To answer your question, you need to run "runDataStoreGarbageCollection" to run datastore Garbage collection.

You can find other ways of running DSGC at [1]

That being said, AEM 6.1 is out of support, please upgrade to the latest version of AEM.

[1] Data Store Garbage Collection