Hi All,
Sometimes, we are getting below error, especially in Author instances:
Caused by: java.lang.OutOfMemoryError: Metaspace 04.04.2024 02:15:56.627 *ERROR* [FelixDispatchQueue] org.apache.sling.servlets.resolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: Metaspace) org.osgi.framework.ServiceException: Service factory exception: Metaspace
Any idea, how we can resolve these issues?
Solved! Go to Solution.
Views
Replies
Total Likes
The "java.lang.OutOfMemoryError: Metaspace" error in Adobe Experience Manager (AEM) indicates that the JVM's Metaspace memory has been exhausted. Metaspace is a part of the Java Virtual Machine (JVM) that is responsible for storing metadata about classes and methods.
To fix this error in AEM, you can try the following steps:
Increase Metaspace Size:
setenv
or start.bat
).-XX:MaxMetaspaceSize=<size>
Replace <size>
with an appropriate value, such as 256m
or 512m
, depending on your system's available memory and requirements.
Review and Optimize Code:
Increase Overall JVM Memory:
-Xmx
and -Xms
parameters.Check for Memory Leaks:
Review AEM Configuration:
Monitor and Tune:
The "java.lang.OutOfMemoryError: Metaspace" error in Adobe Experience Manager (AEM) indicates that the JVM's Metaspace memory has been exhausted. Metaspace is a part of the Java Virtual Machine (JVM) that is responsible for storing metadata about classes and methods.
To fix this error in AEM, you can try the following steps:
Increase Metaspace Size:
setenv
or start.bat
).-XX:MaxMetaspaceSize=<size>
Replace <size>
with an appropriate value, such as 256m
or 512m
, depending on your system's available memory and requirements.
Review and Optimize Code:
Increase Overall JVM Memory:
-Xmx
and -Xms
parameters.Check for Memory Leaks:
Review AEM Configuration:
Monitor and Tune:
Views
Likes
Replies