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

This widget could not be displayed.
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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Jul 30, 2018 in Confluence

How Manon Soubies-Camy uses Confluence + Trello to organize webinar notes and her knitting stash

@Manon Soubies-Camy is an engineer who has been an avid Atlassian user since 2014. She helps companies of all sizes transform the way they work with the Atlassian stack, including Jira and Confl...

863 views 8 13
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