Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Datastore Garbage Collection in AEM 6.0

Avatar

Avatar
Validate 25
Level 3
Maddy737
Level 3

Likes

7 likes

Total Posts

94 posts

Correct Reply

1 solution
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
Maddy737
Level 3

Likes

7 likes

Total Posts

94 posts

Correct Reply

1 solution
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
Maddy737
Level 3

12-04-2019

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

377 likes

Total Posts

867 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

377 likes

Total Posts

867 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

15-04-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

Answers (0)