Control the number of local AS instances to start when the server is started in domain mode

  1. Edit host.xml on the domain controller.

    Edit JBOSS_HOME/domain/configuration/host.xml.
  2. Add or remove servers as necessary.

    Each <server> tag represents a locally-run server. The default configuration has three servers. The first server is the host controller. The host controller is the primary point of communication amongst the servers.
  3. Optional: Configure per-server resources

    You can tweak the maximum heap and size of the JVM, as well as the socket-binding group, and whether the server starts automatically. The standard examples show the port-offset attribute, which prevents port collisions by servers running on the same hardware.
  4. Restart the domain.

    Restart your domain for the changes to take effect.
Result: The correct number and configuration of servers starts on your domain.
When you restart your domain, log messages indicate which local servers exist and are started.