Previous Topic: Tuning JMS SettingsNext Topic: Creating a Disaster Recovery Plan


Tuning JBoss 5 Performance

In a default installation of JBoss 5, the JBoss hot deployment scanner runs every 5 seconds, which affects JBoss performance. You can disable this feature, if it is not needed, or change how often it runs.

To disable or modify hot deployment

  1. Edit the hdscanner-jboss-beans.xml in this location:

    Single Node: jboss_home/server/default/deploy

    Cluster: jboss_home/server/all/deploy

  2. To disable this feature, add the following line inside the HDScanner bean:
    <attribute name="ScanEnabled">False</attribute>
    
  3. To modify the scan frequency, increase the scanPeriod attribute value above 5000 (milliseconds).

Note: For more details, see this link: http://community.jboss.org/wiki/JBossASTuningSlimming.

To address Out of Memory errors

You may see "Out of Memory" exceptions if the Java Heap size is too small. We recommend an initial size of 1024.