Heap size allocation recommendations for AEM Assets Author clusters with MongoMK and NFS
This article provides general recommendations for configuring JVM heap size on Adobe Experience Manager (AEM) Assets Author nodes in on-premise clustered environments using MongoMK and external NFS, especially when servers have high amounts of physical RAM.
Description description
Environment
Adobe Experience Manager (AEM) Assets, On-premise, Author clusters using MongoMK and NFS
Symptoms
- In on-premise AEM Assets Author clusters using MongoMK (MongoDB replica set) and an external NFS file data store, determining the optimal JVM heap size is important for system stability and performance.
- High-memory nodes (For example: with 160 GB or 180 GB RAM) are common in these deployments.
- Heap sizing should be based on asset volume, asset-processing workload, concurrent users, and overall system performance, rather than a fixed percentage of physical RAM.
- Allocating too much memory to the JVM heap leaves insufficient resources for the operating system, JVM native memory, file system cache, and other processes, causing performance issues.
Resolution resolution
Follow the steps below to resolve the issue:
-
Start with a baseline heap allocation for high-memory servers:
-
For servers with 180 GB RAM: set
-Xms96g -Xmx96g -
For servers with 160 GB RAM: set
-Xms80g -Xmx80g
-
-
Don’t treat these values as fixed recommendations. Adjust based on your specific workload and environment.
-
Perform representative workload testing while monitoring:
-
JVM and garbage collection (GC) behavior
-
Operating system memory utilization
-
Asset-processing performance
-
MongoDB and NFS performance
-
-
If the environment is stable and workload analysis indicates a need for more heap, increase the allocation incrementally, ensuring sufficient memory remains for the OS and file system cache.
-
Continue to monitor system health and adjust, as needed.
-
Verify that the system remains stable and performant after changes by reviewing JVM, OS, and application-level metrics.