Clarity Java OutOfMemoryError: Metaspace in app-system or bg-system.log
book
Article ID: 128527
calendar_today
Updated On: 05-19-2023
Products
Clarity PPM SaaS
Clarity PPM On Premise
Issue/Introduction
- Alert showed java.lang.OutOfMemoryError in the app-system.log file or app-ca.log file
- Or the app service has gone down with OOM
- This may affect app or bg service and may generate a heap dump if it's set up
Upon checking the heap dump we could see low memory usage and nothing out of ordinary. This is not a heap space issue but metaspace issue.
Error from the log:
2019/02/21 08:23:23.414 | java.lang.OutOfMemoryError: Metaspace
Resolution
Troubleshooting:
- Check for anything done on this server during this time (another process that could take all the available RAM).
- Check the current value for Metaspace in the properties.xml in jvmParameters for the affected service. This value may have to be increased
Resolution
- Please update the JVM parameters for the affected service. Example for app service:
From -XX:MaxMetaspaceSize=300m
to
-XX:MaxMetaspaceSize=512m
- Save and restart the services.
- Repeat for all the servers in cluster
Feedback
Was this article helpful?
thumb_up
Yes
thumb_down
No