`

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:

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

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics