Quick Fixes - ranjanui/AEM GitHub Wiki

Find AEM Version

Oak TarMK Compaction - AEM Compaction

  • http://www.aemcq5tutorials.com/tutorials/online-offline-tar-compaction-in-aem/

  • https://www.netcentric.biz/blog/is-your-repository-growing-rapidly-in-aem6.html If we are using Tar files as the storage, it tends to grow in size and starts claiming disk space every time when data is created or updated as data in tar files are never overwritten rather it keeps adding new versions. To mitigate the same, AEM has garbage collection mechanism which is known as ‘Tar Compaction’ to remove the unused data and reclaim the disk space.

  • for offline compaction

  • download correct version of oak-run.jar (to know about correct version of oak-jar as per your AEM version- go to felix console - http://localhost:4502/system/console), search oak-jar, check version there

  • Stop AEM instance

  • find any old check point - java -jar oak-run.jar checkpoints your-install-folder/crx-quickstart/repository/segmentstore

  • delete unreferenced checkpoints - java -jar oak-run.jar checkpoints your-install-folder/crx-quickstart/repository/segmentstore rm-all

  • compact - java -jar oak-run.jar compact your-install-folder/crx-quickstart/repository/segmentstore