April 1, 2020
Estimated Post Reading Time ~

How to Make AEM Spit Out More Information on BlobGC

Unlike Data Store GC in CQ 5.6, its new Oak incarnation BlobGC in AEM 6.n does not spit out status messages by default. However, you can make it do that with an additional Apache Sling Logging Logger configuration that looks like this (click on image for a larger version):
Essentially, you need to:

1) Navigate to /system/console/configMgr
2) Search for ‘Apache Sling Logging Logger’
3) Click the + sign at the top right to create a new logger
4) Set the Log Level to ‘Debug’
5) Set Log File to ‘logs/BlobGC.log’
6) Set Logger to ‘org.apache.jackrabbit.oak.plugins.blob.MarkSweepGarbageCollector’
7) Click the ‘Save’ button
8) Check in //crx-quickstart/logs for a new log file named BlobGC.log

You should see entries such as these:

12.05.2016 09:16:40.189 *DEBUG* [pool-7-thread-4] org.apache.jackrabbit.oak.plugins.blob.MarkSweepGarbageCollector retrieved 1264233 blobs
12.05.2016 09:18:04.174 *DEBUG* [pool-7-thread-4] org.apache.jackrabbit.oak.plugins.blob.MarkSweepGarbageCollector retrieved 1266282 blobs


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.