JVM heap sizing and default JVM arguments in AEM 6.5 LTS
This article provides guidance on determining an appropriate JVM heap size and explains where to find and review the default JVM arguments for Adobe Experience Manager (AEM) 6.5 LTS.
Description description
Environment
Adobe Experience Manager (AEM) 6.5 LTS running on Java 17 or 21.
Symptoms
Administrators need to determine the recommended JVM heap size for AEM 6.5 LTS and confirm where the default JVM arguments are defined and how to review or customize them.
Cause
There is no single official recommended heap size for AEM 6.5 LTS, as optimal sizing depends on the specific deployment and workload. The default JVM arguments are defined in the AEM startup script and can be reviewed or customized as needed.
Resolution resolution
Follow the steps below to resolve the issue.
-
Review the official hardware sizing guidelines, technical requirements, and performance testing best practices for AEM 6.5 LTS to inform your JVM heap size selection.
-
As a general guideline, production environments often use 8–16 GB for the JVM heap size. For example, on a server with 32 GB of RAM, setting both
-Xmsand-Xmxto 16g is common:-Xms16g -Xmx16g -
It is recommended to set the initial and maximum heap sizes to the same value for stability.
-
The heap size should not exceed half of the total server memory unless the server has a very large amount of RAM, in which case a lower ratio may be appropriate.
-
Test your configuration under expected workloads and adjust as needed.
-
To review or customize the default JVM arguments, locate the AEM startup script in your installation directory (for example, under the
crx-quickstart/bin/startpath). The default JVM arguments are defined in this script and can be overridden by setting the appropriate environment variable (such asCQ_JVM_OPTS) before starting AEM. -
For more information, refer to the following documentation:
-
After making changes, confirm that AEM starts successfully and monitor memory usage under typical workloads.