Confluence 5.8.18 crashing after schedulerError Job


since some weeks I'm getting the following error for like 100 times and then the confluence instance is crashing and rebooting (sometimes).

ERROR [scheduler_Worker-3] [org.quartz.core.ErrorLogger] schedulerError Job (DEFAULT.IndexQueueFlusher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: com.atlassian.bonnie.LuceneException: Error refreshing index searcher]
	at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool.lambda$runInThread$152(
	at org.quartz.simpl.SimpleThreadPool$
Caused by: com.atlassian.bonnie.LuceneException: Error refreshing index searcher
	at com.atlassian.bonnie.LuceneConnection.commitAndRefreshSearcher(
	at com.atlassian.bonnie.LuceneConnection.withBatchUpdate(
	at sun.reflect.GeneratedMethodAccessor649.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(
	at com.sun.proxy.$Proxy69.flushQueue(Unknown Source)
	at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(
	at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(
	at org.springframework.scheduling.quartz.QuartzJobBean.execute(
	at com.atlassian.scheduler.quartz1.Quartz1JobFactory$ClassLoaderProtectingWrappedJob.execute(
	... 2 more
Caused by: Map failed
	at org.apache.lucene.index.SegmentCoreReaders.<init>(
	at org.apache.lucene.index.SegmentReader.<init>(
	at org.apache.lucene.index.ReadersAndLiveDocs.getReader(
	at org.apache.lucene.index.BufferedDeletesStream.applyDeletes(
	at org.apache.lucene.index.IndexWriter.applyAllDeletes(
	at org.apache.lucene.index.IndexWriter.maybeApplyDeletes(
	at org.apache.lucene.index.IndexWriter.prepareCommitInternal(
	at org.apache.lucene.index.IndexWriter.commitInternal(
	at org.apache.lucene.index.IndexWriter.commit(
	at com.atlassian.bonnie.LuceneConnection.commitAndRefreshSearcher(
	... 21 more
Caused by: java.lang.OutOfMemoryError: Map failed
	at Method)
	... 36 more
2017-06-01 11:49:31,253 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 5.8.18

Sometimes it is not starting again, that's why we recognized this as a problem...


Any idea where this is coming from?
Thanks for your help!

1 answer

0 votes
Ann Worley Atlassian Team Jun 01, 2017

This article is for JIRA but as the issue is with Java memory and the OS, it applies to Confluence as well:

JIRA crashes with Map fail

Thanks for your reply, I have already added this to my startup script and it is still occuring...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

462 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you