My AEM6 author instance is slow, I noticed that on idle instance
AsyncIndexUpdate constantly running and generating load.
26.06.2014 11:25:38.506 *DEBUG* [pool-9-thread-5]
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate Running background
index task async
26.06.2014 11:25:38.894 *DEBUG* [pool-9-thread-5]
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor Indexed 1
nodes, done.
26.06.2014 11:25:45.822 *DEBUG* [pool-9-thread-4]
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate Running background
index task async
26.06.2014 11:25:46.197 *DEBUG* [pool-9-thread-4]
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor Indexed 1
nodes, done.
By analyzing thread dump I can see that all other threads are idle, only
AsyinIndexUpdate is running, ang generating ~120-180% CPU Load (2 cores).
at
org.apache.jackrabbit.oak.plugins.document.CommitQueue.done(CommitQueue.java:83)
at
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.done(DocumentNodeStore.java:553)
at
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:177)
at
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:85)
at
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:38)
at
org.apache.jackrabbit.oak.spi.state.AbstractNodeStoreBranch$InMemory.merge(AbstractNodeStoreBranch.java:500)
at
org.apache.jackrabbit.oak.spi.state.AbstractNodeStoreBranch.merge(AbstractNodeStoreBranch.java:300)
at
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.merge(DocumentNodeStoreBranch.java:129)
at
org.apache.jackrabbit.oak.plugins.document.DocumentRootBuilder.merge(DocumentRootBuilder.java:159)
at
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.merge(DocumentNodeStore.java:1275)
at
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.run(AsyncIndexUpdate.java:179)
- locked <0x000000077441af80> (a
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate)
at
org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:105)
at org.quartz.core.JobRunShell.run(JobRunShell.java:207)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
No other processes are running on this box.
Any advise what's going on ? Is AsynIndexUpdate job supposed to generate
heavy load ?
Can I somehow stop it, or how to find out what triggers reindexing
constantly ?
I'm running OAK using MongoMK (AEM6 setup)
Regards, Przemo Pakulski