Increase Cache Size parameter in workspace.xml of AEM

How to Increase Cache Size parameter in workspace.xml

Place below configuration in cache section of searindex elements
§
 

Workspace.xml
 Under SearchIndex class where values is ="com.day.crx.query.lucene.LuceneHandler"
 
 param name  is ="cacheSize" value="100000"
 
Repository.xml
   Where PersistenceManager class is of type ="com.day.crx.persistence.tar.TarPersistenceManager"
   param name is ="bundleCacheSize"  and value is ="512"


Workspace.xml
           
  Where PersistenceManager class is ="com.day.crx.persistence.tar.TarPersistenceManager"
  And param name is ="bundleCacheSize" value is ="512"
  
 
 Note: applicable to AEM 5.6.1/5.4
 

Increase the Bundle Cache size in AEM



Steps Increase the Bundle Cache size:

 Step1:     repository.xml and all of your workspace.xml
 Step2: Edit PersistenceManager elements in repository.xml and workspace.xml file
 Step3: add element
 Step4: Increased size to 256 or 512 or 1024, depending upon jvm size.

Set the JVM Max ,Min heap and Perm size of JVM in AEM


Add the below details in start.bat/start.sh file of AEM:

CQ_JVM_OPTS='-server –Xms8192m –Xmx8192m -XX:MaxPermSize=1024M 

where as 
  • Xms is Min heap - size can be increased depending on the your instance RAM size
  • Xmx is Max heap - size can be increased depending on the your instance RAM size
  •  MaxPermSize size can be increased depending on the your instance RAM size
finally restart the instance.