Resolve locator crashes in AEM Forms JEE due to temp directory disk space exhaustion
This article describes how to address locator crashes in Adobe Experience Manager (AEM) Forms JEE that occur when the temporary document storage directory fills up during high-volume batch processing. The solution involves adjusting configuration settings to optimize resource usage and prevent disk space exhaustion.
Description description
Environment
- Adobe Experience Manager (AEM) Forms JEE (version not specified)
- Clustered installation
Issue/Symptoms
During high-volume batch processing in AEM Forms JEE with a clustered installation, the temporary document storage directory can fill up and exhaust available disk space. This typically happens when the Default document max inline size is set too low, resulting in most documents being written to disk rather than kept in memory. When disk space allocated to the temp directory is exhausted, locator processes may crash, disrupting batch operations. This issue does not occur during single form rendering and is specific to batch processing scenarios.
- Temp directory fills up during batch processing.
- Locator processes crash when disk space is exhausted.
- Issue occurs only during batch processing, not during single form rendering.
Cause
The Default document max inline size setting determines whether documents are kept in memory or written to disk. If this value is too low, most documents are written to the temp directory, quickly consuming available disk space during batch operations. When disk space runs out, locator processes crash.
Resolution resolution
Resolution
Follow these steps to resolve the issue:
-
Increase the
Default document max inline size:- In the AEM Forms Administration Console, navigate to the appropriate configuration section.
- Change the
Default document max inline sizefrom the default value (for example, 65536 bytes or 64 KB) to a higher value such as 5242880 bytes (5 MB). - This change ensures that most documents are kept in memory and not written to disk, reducing temp directory usage.
-
Expand available disk space for the temp directory:
- Increase the disk space allocated to the temp directory to accommodate batch processing needs. A recommended value is at least 200 GB, depending on batch size and document volume.
-
Verify and maintain disposal settings:
- Ensure that the
Document disposal timeoutis set to 600 seconds and theDocument sweep intervalis set to 30 seconds.
- Ensure that the
-
Ensure JVM and database resources are sufficient:
- Increasing the inline size shifts resource usage from disk to memory and the database. Confirm that the JVM heap and database sizing are adequate to handle the increased load.
-
Monitor during batch processing:
- After making these changes, monitor disk usage and locator process stability during batch runs to confirm that the issue is resolved.