Confluence crashes due to OutOfMemoryError Metaspace

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only. This article only applies to Atlassian products on the server and data center platforms.


Confluence crashes after upgrading to Confluence 5.7.x (or above) and using JAVA 8.

The following appears in the atlassian-confluence.log

2015-06-10 10:02:05,782 ERROR [scheduler_Worker-10] [org.quartz.core.ErrorLogger] schedulerError Job (DEFAULT.IndexQueueFlusher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.OutOfMemoryError: Metaspace]
	at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool.lambda$runInThread$46(
	at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$$Lambda$91/ Source)
	at org.quartz.simpl.SimpleThreadPool$
Caused by: java.lang.OutOfMemoryError: Metaspace



  • Confluence is running on JAVA 8


-XX:MaxMetaspaceSize limits the maximum size of Memory allocation. Confluence has exceeded this fixed block for loading class files.


  • Remove the -XX:MaxMetaspaceSize=256m argument in system properties (see Configuring System Properties). Future versions of Confluence will not set this argument per CONF-37925 - Getting issue details... STATUS


Last modified on Mar 30, 2016

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.