Spring Framework を使用したアプリケーションを JBoss EAP 7 にホットデプロイするとメタスペースがリークする
Issue
-
Spring Boot の war アプリケーションを JBoss EAP 7 に繰り返しホットデプロイすると、
java.lang.OutOfMemoryError: Metaspaceが出力されます。12:44:36,178 WARN [org.jboss.modules.define] (ServerService Thread Pool -- 2) Failed to define class org.springframework.beans.factory.support.AbstractBeanDefinition in Module "deployment.app.war" from Service Module Loader: java.lang.OutOfMemoryError: Metaspace
Environment
- Red Hat JBoss Enterprise Application Platform
- 7.3
- 7.4
- OpenJDK
- 11
- 17
- Spring Framework
- Spring Boot
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.