'Out of Memory: Metaspace'
Hello,
We had an incident on one of our Publish instance where the environment was completely down.
The error in the logs:
org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingExceptionjava.lang.Exception: Wrapping Throwable: java.lang.OutOfMemoryError: Metaspace at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:614) [org.apache.sling.scripting.jsp:2.3.6]at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:388) [org.apache.sling.scripting.core:2.3.2]at
We checked the thread dumps and lot of waiting threads at:
org.apache.sling.scripting.sightly.impl.engine.compiled.SlingHTLMasterCompiler.compileSource(SlingHTLMasterCompiler.java:392)
at org.apache.sling.scripting.sightly.impl.engine.compiled.SlingHTLMasterCompiler.compileHTLScript(SlingHTLMasterCompiler.java:245)
at org.apache.sling.scripting.sightly.impl.engine.SightlyScriptEngine.compile(SightlyScriptEngine.java:58)
We have also been seeing a 'Missing Compilation Support' error after some deployments lately. Only a restart fixes that.
Wondering if these are related and if anyone has faced such issue earlier and found a root cause and solution.
Thanks
Ruchi