AEM either crashes with an OutOfMemoryError, is running constant java garbage collection or is showing high heap utilization. On analysis of a heap dump in Eclipse Memory Analyzer Tool, the top consumer of java heap, an AsyncIndexUpdate thread is consuming the most retained heap via an instance of org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory$OakIndexInput:
AEM 6.1 / Oak 1.2.x and AEM6.2 / Oak 1.4.x
It is due to a known bug in Oak repository.
The issue can be fixed by enabling Copy on Write feature of the Lucene Index Provider in AEM following the below steps:
Sign in to your account