Why the publish server goes out of space while running performance/load tests?

Introduction

How to respond to the AEM publish server running out of space while executing performance/load tests.

Please ensure before making any changes, you take a proper back up of the instance to avoid losing data. For information, see Backup and Restore.

Perform the following steps if this problem occurs. 

  1. Shut down the AEM server.
  2. Use the tool to find the old checkpoints: java -jar oak-run.jar checkpoints install-folder/crx-quickstart/repository/segmentstore. 
  3. Then, delete the unreferenced checkpoints: java -jar oak-run.jar checkpoints install-folder/crx-quickstart/repository/segmentstore rm-unreferenced. 
  4. Finally, run the compaction and wait for it to complete: java -jar oak-run.jar compact install-folder/crx-quickstart/repository/segmentstore.