-
Bug
-
Resolution: Fixed
-
Medium
-
5.8.2, 5.8.4
-
None
-
Java 8
Problem Definition
Default Java metaspace defined in the Confluence system properties is too small. Support has received multiple tickets from user instances that hang or crash after upgrading to 5.8.x, and a similar error is displayed in the logs:
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 org.quartz.core.JobRunShell.run(JobRunShell.java:234) at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool.lambda$runInThread$46(ConfluenceQuartzThreadPool.java:19) at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$$Lambda$91/1891777742.run(Unknown Source) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Caused by: java.lang.OutOfMemoryError: Metaspace
Suggested Solution
Set the default Java metaspace as -XX:MaxMetaspaceSize=384m or higher in the CATALINA_OPTS, or do not include a -XX:MaxMetaspaceSize since the JVM will allocate it as needed.
See KB : Confluence crashes due to 'java.lang.OutOfMemoryError Metaspace' error for more information