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 vote
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Asked May 24, 2018 in Confluence

What are the resources that you use to learn more about Atlassian Products?

I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...

603 views 18 16
View question

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