AEM 6.5 JVM Options and Performance Tuneups



We are going live to AEM 6.5.4 version in Production and want to check if below JVM options are correct for a production environment please suggest


CQ_JVM_OPTS='-server -Xms8192m -Xmx8192m -XX:MaxMetaspaceSize=1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/aem/heapdumps -Djava.awt.headless=true'


And below as per adobe aem documentation here :


CQ_JVM_OPTS="${CQ_JVM_OPTS} -XX:+UseParallelGC --add-opens=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED --add-opens=java.base/ --add-opens=java.naming/javax.naming.spi=ALL-UNNAMED --add-opens=java.xml/ --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-opens=java.base/ -Dnashorn.args=--no-deprecation-warning"


Also are there any performance tuneups recommendations for AEM 6.5 other than what is mentioned here


AEM aem6.5 jvm_options performance

Accepted Solutions (1)

Accepted Solutions (1)




Personally I'd also add : 


-XX:+PrintGCApplicationStoppedTime -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCTimeStamp


These will output Java garbage collection statistics to logs. 

Some of the most useful logs when things hit the fan.


Allows you to visualize the Java heap state across time.

Answers (0)