1. Patch jboss.jar (Can be optional as I tested out)
-- refer to https://issues.jboss.org/i#browse/JBAS-8786
2. Add jboss-scanning.xml to WEB-INF of your application
-- refer to https://issues.jboss.org/i#browse/JBAS-7035
Content of jboss-scanning.xml
<scanning xmlns="urn:jboss:scanning:1.0">
<!-- Purpose: Disable scanning of annotations in Java classes in the contained deployment. -->
</scanning>
3. JBOSS tunning (on vfs)
JAVA_OPTIONS I took:
扫描二维码关注公众号,回复:
655774 查看本文章
-Djboss.vfs.forceCopy=true -Djboss.vfs.optimizeForMemory=true -Djboss.vfs.forceVfsJar=false