I'm using Wildfly 11 and Java 8. I'm running into OutOfMemory errors due to lack of MetaSpace so I'm looking for ways to optimize my class loading. I have several WAR files that run on the same app server. Most contain the same types of classes
$WILDFLY_HOME/myapp.war/WEB-INF/lib/spring-context-4.3.8.RELEASE.jar
$WILDFLY_HOME/myapp.war/WEB-INF/lib/spring-context-support-4.3.8.RELEASE.jar
...
I'm wondering if this is a problem (e.g. Wildfly attempts to load the same class twice for different applications) and if so, what options are available to me for cutting down my memory footprint due to class loading?