Offline compaction :
Few may face issues with disk space issue on Segment store folder .
To reduce space , AEM has provided with compaction tool. This post explains about offline compaction techniques.
Steps to perform offline compaction:
- Download and install latest oak-run . Please visit below URL to check the updates
https://repository.apache.org/content/repositories/releases/org/apache/jackrabbit/oak-run/ - Stop the AEM instance.
- Backup the instance .
- Check the size before running command
- Run the below command
- java -jar oak-run-x.x.xx.jar checkpoints <segmentstore path>
- java -jar oak-run-x.x.xx.jar checkpoints <segmentstore path> rm-unreferenced
- java -jar oak-run-x.x.xx.jar compact <segmentstore path>
- Start the instance.
- Check the segment store size.
Explanation:
- First command will identify the older checkpoints.
- Second command, checks for unreferenced checkpoints and remove them
- Compact the segment store.
No comments:
Post a Comment