AEM on-premises: handling temporary files and disk space issues

When disk space is limited on AEM on-premises servers, temporary files in the Java temporary directory can accumulate. Stop AEM, move the files to a backup location, and then delete them after you verify AEM operates normally.

Description description

Environment

  • Adobe Experience Manager (AEM) on-premises (all versions)
  • The Java option java.io.tmpdir is set to a specific directory.

Symptoms

  • Large numbers of temporary files (such as filevault*.zip, vaultpack*.zip, java_pid*.hprof, contentPackage_*_temp, __crx3*.dat, *.tmp) accumulate in the Java temporary directory (such as /opt/aem/tmp).
  • Disk space on the operating system root drive is consumed on AEM servers.

Cause

Temporary files generated by AEM and JVM processes (such as during package creation, replication, maintenance, or crash dumps) may accumulate if not automatically cleaned up, especially after interrupted or abnormal operations. These files can consume significant disk space if not periodically removed.

Resolution resolution

Follow the steps to resolve the issue:

  1. Confirm that no custom applications or scripts write data to the Java temporary directory that you must preserve.
  2. Stop the AEM Java process on the affected server.
  3. Move all files from the Java temporary directory (such as /opt/aem/tmp) to a backup location. If backup is not feasible, proceed to delete the files.
  4. Start AEM and verify that it operates normally.
  5. If no issues are observed, delete the backup files.

Do not delete temporary files while AEM is running, as ongoing processes may be using them. Deleting in-use files can cause unexpected behavior or errors. Review the types and sizes of files in the temporary directory on each server and identify large files as candidates for removal following the above procedure.

Adobe Experience Manager: Temporary Files under /tmp persist on Standby instance with S3 DataStore

recommendation-more-help
experience-cloud-kcs-help-kbarticles