RE: Out of memory metaspace

Jamie Sammons, modified 2 Years ago. New Member Post: 1 Join Date: 5/26/23 Recent Posts

Why is it that when I create an entity, many classes are created? Because of this, when deploying in Liferay, a metabase error occurs. On the website, the solutions were to increase the meta size, but I want to find a solution without doing that, as I do not prefer it. Another solution was to reduce unwanted classes and objects.
 

thumbnail
Olaf Kock, modified 2 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

What is the current metaspace amount that you don't want to increase? Which version and how many other plugins (other than the OOTB plugins) did you deploy?

In general: If you don't have enough Metaspace, you'll have​​​​​​​ to increase it. If you have some leak of Metaspace memory, you should check where it comes from. Certainly it's not coming from (assumed) number of Service-Builder classes.