Recently, I came across an issue in my project where all the AEM servers, Dev, QA, and Stage were occupying huge amount of disk space. All the servers are running on AEM 6.0 and we don’t have much content on the server so it didn’t made sense to me. I checked the Adobe Blog and found that it’s a known issue and Adobe has released a service pack for it. I used the below procedure to install the service pack and free up the disk space.
These steps are prepared using this release notes:
http://docs.adobe.com/docs/en/aem/6-0/release-notes-sp1.html
And
Step 1: Download the service pack from Adobe package share.
- Log on to this link, go to “ASSETS” tab and click on “Download to disk: AEM 6.0 Service Pack 1-1.0” link.
- This should download the service pack to your local system.
Step 2: Restart the AEM server.
Step 3: Once the AEM server is up, go to package manager using “http:<hostname>:<portname>/crx/packmgr” and upload the “AEM 6.0 Service Pack 1-1.0.zip” file downloaded from the package share and click on install.
Step 4: Wait until the full package is installed.
Step 5: Run a check on the instance if everything is working as expected.
Reducing the repository size
Download this jar file:
Step 1: shut down AEM
Step 2: Use the tool to find checkpoints using the below commands:
java -jar oak-run.jar checkpoints install-folder/crx-quickstart/repository/segmentstore
Step 3: Then, delete the checkpoints using the below command:
java -jar oak-run.jar checkpoints install-folder/crx-quickstart/repository/segmentstore rm-all
Step 4: Finally, run the compaction and wait for it to complete:
java -jar oak-run.jar compact install-folder/crx-quickstart/repository/segmentstore
Step 5: start the AEM server and perform an environment check and you’re done.
The above steps helped me to free the disk space up to 90%. (Before clean up the instance was taking 23 GB, after clean up it’s taking 4 GB) 🙂
Leave a comment