JBoss 6.0.0 Final 启动慢且占用大量内存的解决方法

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)

        -- refer to https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Web_Platform/5/html/Administration_And_Configuration_Guide/JBAS_Tuning.html

JAVA_OPTIONS I took:

扫描二维码关注公众号,回复: 655774 查看本文章

-Djboss.vfs.forceCopy=true -Djboss.vfs.optimizeForMemory=true -Djboss.vfs.forceVfsJar=false

猜你喜欢

转载自huanyue.iteye.com/blog/2020587