Monday, June 15, 2020

AEM assets performance tuning

AEM assets performance tuning :

TarMK should be used preferably.

TarMK workflow offloading should be used to improve workflow task processing power.


Platform :

To improve asset upload times, use high performance storage for the Java temporary directory. On Linux and Windows, a RAM drive or SSD could be used. In cloud-based environments, an equivalent high speed storage type could be used. For example in Amazon EC2, an ephemeral drive drive can be used for the temporary folder.


JAVA :

Set following parameters :

-XX:+UseConcMarkSweepGC : Used for tenured generation collection. Does concurrent collection with the execution of application.
-Doak.queryLimitInMemory =500000 : limits query execution in tern limits to memory used  by query execution
-Doak.queryLimitReads =100000 : Limits the queries that traverse many nodes.
-Dupdate.limit =250000
-Doak.fastQuerySize =true

Data store and Memory configuration :

Separate data store from segment store.
Configure the values of maxCachedBinarySize and cacheSizeInMB.
Configure CQBufferedImageCache at  https://host:port/system/console/configMgr/com.day.cq.dam.core.impl.cache.CQBufferedImageCache

Using shared data store :

Implenenting s3 or shared file datastore

Network Optimization :

Wired connections preferred for large sizes of assets
Create network sizing spreadsheet
Ensure sufficient bandwidth
If it is hosted on AWS, you can use versatile scaling policy
Use https

Workflows :

Use transient workflow
If you have non transient workflow - use acs tool to remove the workflows when no needed
Set half of the number of processors to do the workflow jobs parallely.
avoid rendition generation at ingestion time, instead use run time rendition generation using servlets or alternatively use scene7.
If you're using imagemagik, modify policy file so that all available diskspace is not occupied.
xmp write back should be disabled if not required

Replication :

When replication large number of assets to number of publishers, chain replication should be used. i.e. Author replicates to single publisher and then publisher replicates to other publisher and so on.

Indexing :

Please read here






No comments:

Post a Comment

Some more AEM 6 Interview Questions for Architects

 Some more AEM 6 Interview Questions for Architects 1. Consider you have a workflow with two steps. One step is to transfer the asset from s...