Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

AEM Start up

Avatar

Level 2

Hi All,

We have below start up parameter on AEM 5.6.1 instance.

# JVM PARAMETERS
CQ_HEAP_MAX=6144
CQ_MAX_PERMSIZE=512
CQ_CODE_CACHE=128

CQ_CODE_CACHE_OPTS="-XX:ReservedCodeCacheSize=${CQ_CODE_CACHE}m -XX:+UseCodeCacheFlushing"

CQ_GC_OPTS="-XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEnabled -Xloggc:${CQ_HOME}/logs/gc.log -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime
-XX:+PrintGC -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+CMSClassUnloadingEnabled -Dcrx.memoryCheckDisabled=true -Dcrx.diskSpaceMin=0"

CQ_JVM_MXREMOTE_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmx
remote.port=1${CQ_PORT} -Djava.rmi.server.hostname=${JVM_IP}"

CQ_JVM_OPTS="-Dsling.run.modes=${CQ_RUNMODE} -Djava.awt.headless=true -Dcrx.memoryCheckDisabled=true -Dcrx.diskSpaceMin=0 -Dorg.apache.jackrabbit.version.recovery=true
-Djava.security.auth.login.config=${CQ_JASS_CONFIG}"

CQ_JVM_OPTS="${CQ_JVM_OPTS} -Djackrabbit.maxQueuedEvents=1000000 -Dcom.day.crx.persistence.tar.IndexMergeDelay=0 -Dmemorymaxusage=98 -Dcrx.memoryMinStdev=1"
CQ_JVM_OPTS="${CQ_JVM_OPTS} -Dorg.apache.jackrabbit.core.state.validatehierarchy=true -Dcom.day.crx.persistence.tar.MinIdle=15"
CQ_JVM_OPTS="${CQ_JVM_OPTS} -XX:-UseSplitVerifier -XX:ParallelGCThreads=8 -XX:MaxTenuringThreshold=13 -XX:+UseAdaptiveGCBoundary"
#CQ_JVM_OPTS="${CQ_JVM_OPTS} -XX:+UseParallelGC -XX:+UseParallelOldGC"

export CQ_JVM_OPTS="-server -Xmx${CQ_HEAP_MAX}m -XX:MaxPermSize=${CQ_MAX_PERMSIZE}m ${CQ_JVM_OPTS} ${CQ_JVM_MXREMOTE_OPTS} ${CQ_CODE_CACHE_OPTS} ${CQ_GC_OPTS}"

Can anyone please let me know, if this can be tuned up?

 

Thanks.

2 Replies

Avatar

Employee Advisor

Hi,

what do you want achieve with this tuning?

kind regards,
Jörg

Avatar

Level 2

Hi Jorg,

Thank you for the reply. We can see that the instance is taking too long to get started. We suspect GC is running concurrently on the instance. Please help.

Regards,

Vishnu