{{parent page="HomePage"}} ===Jboss=== Basic jboss tuning http://wiki.jboss.org/wiki/JBossASTuningSliming ==Sub Topics== [[JbossScheduler Scheduling tasks]] ====Garbage Collection==== Useful options: %% -verbose:gc -Xloggc: -XX:ParallelGCThreads=n (where n should not exceed number of cpus) %% ====Heap tuning==== Useful options: %% -Xms : minimum heap size -Xmx : max heap size -XX:MaxNewSize= : max young generation size -XX:NewRatio : ratio of young to tenured generation -XX:UseTLAB : provide each thread in application with its own allocation area in the eden space -XX:MaxPermSize : max perm generation size %% ===Jboss rewrite=== http://www.jboss.org/file-access/default/members/jbossweb/freezone/docs/2.1.0/rewrite.html - edit server.xml under jboss-web.deployer/ - add to the section - then create rewrite.properties under $JB_HOME/server/default/conf/ - the file should look like %% RewriteRule ^/abc /cde %% ===CLOSE_WAIT bug=== bug - https://jira.jboss.org/jira/browse/JBPAPP-366 install - http://www.jboss.org/community/docs/DOC-9912 ==Clustering== 要在JBOSS中配置JVM路由( JVMRoute),否則APACHE就 法知道究竟哪些SESSION是属于哪个节点的。 1)修改jboss-service.xml配置文件%jboss%\server\all\deploy\jbossweb-tomcat55.sar\ META-INF\ jboss-service.xml將false,将false值改为true。 2)修改server.xml配置文件 修改server1上的%jboss%\server\all\deploy\jbossweb-tomcat55.sar\ server.xml 给它增 一个jvmRoute属性: 请注意,jvmRoute的值必须和mod_jk中的节点名字一致, 3)WEB程序的配置 需要在 的Web应用中修改配置文件,让它支持集群。在WEB-INF\web.xml中 入属性: