- 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.AEM Dispatcher Series 2 - Understanding the `dispatcher.any` File
 - 2.AEM Dispatcher Series 3 - Securing Your AEM Site - Deep Dive into Dispatcher `/filter` Rules
 - 3.AEM Dispatcher Series 4 - A Developer’s Guide to Dispatcher `/cache` Rules
 - 4.AEM Dispatcher Series 5 - When and How to Clear Cache
 - 5.AEM Dispatcher Series 6 - Handling Vanity URLs, Sessions, and `/renders`