- Published on
How to run offline compaction in AEM on Windows
- Authors

- Name
- Khalil
- @Im_Khalil
Is your AEM repository size increasing rapidly? Follow the step by step guide below to perform offline tar compaction in aem.
Prerequisite : Download the correct version of oak jar that matches with your aem repository version.
How to find correct version of oak-run jar?
Goto Felix console.
Search for oak.
Check the version of each oak bundle.

Now go to MVN Repository and download respective oak-run.jar file.
Steps to run offline compaction:
- Shutdown AEM Instance
- Navigate to oak jar location.
- Run the following command on command prompt.
java -jar oakrun.jar compact install-folder/crx-quickstart/repository/segmentstore
You might also like to read
- 1.SegmentNotFoundException in AEM - How to Fix It Safely
- 2.AEM Dispatcher Series 1 - A Developer’s Guide to What It Is and Why You Should Care
- 3.AEM Dispatcher Series 2 - Understanding the `dispatcher.any` File
- 4.AEM Dispatcher Series 3 - Securing Your AEM Site - Deep Dive into Dispatcher `/filter` Rules
- 5.AEM Dispatcher Series 4 - A Developer’s Guide to Dispatcher `/cache` Rules