1 Reply Latest reply on Apr 6, 2017 11:22 AM by Raghava Joijode

    AEM 6.1 Repository Size increasing

    Raghava Joijode Level 1

      Hi All,

      I am using AEM 6.1 With SP2, my aem repository folder is increasing rapidly, I read on the tar compaction and tried them but I am unable to succeed.

      For online i followed - https://helpx.adobe.com/experience-manager/kb/AEM_6_TarMK_Online_Compaction.html; installed hot fix for oak. then restarted my aem, I am getting Authentication Support Service missing , I checked console all bundles are active.

      For offline I Used oak-run-1.2.11.jar and after running compacting step im getting error saying, SegmentNotFound Exception.

       

      -Thanks,
      Raghava.

        • 1. Re: AEM 6.1 Repository Size increasing
          Raghava Joijode Level 1

          Compaction of TAR files:

          1) Offline Compaction : 

          Download oak-run-*.jar from https://mvnrepository.com/artifact/org.apache.jackrabbit/oak-run, download the version same as the oak version you are using (Can be seen at right side of crx/de page).

          Run Below commands,

          1. Shutdown aem
          2. java -jar oak-run-*.jar checkpoints /(path of aem installed folder)/crx-quickstart/repository/segmentstore
          3. java -jar oak-run-*.jar checkpoints /(path of aem installed folder)/crx-quickstart/repository/segmentstore rm-all
          4. java -jar oak-run-*.jar compact /(path of aem installed folder)/crx-quickstart/repository/segmentstore
          5. start aem

          This will cleanup redundant data from repository.

          2) Online compaction:

          1. Go to /libs/granite/operations/config/maintenance/granite:daily/granite:RevisionGC > property named granite.operations.condition.runmode to "crx3" from "crx3-disabled". The current value should be "crx3".
          2. Download oak hotfix from package of version same as your crx version. Install it.
          3. shutdown aem
          4. To enable the online compaction, simply add the property "pauseCompaction" with value "false" in the below config. Create/Use the following config file to add it, for example:

            /crx-quickstart/install/org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService. cfg

            pauseCompaction=false

              Note:The online compaction is less efficient than offline compaction and its effect can only be observed over a prolonged period of time (a couple of days). You should not expect removed content to be garbage collected right away as the content might still be referenced by other sessions

          Offline compaction gives immediate results on successful run than online