2.6.6. Reference of Switches and Arguments to pass at Server Runtime

The application server startup script accepts the addition of arguments and switches at runtime. The use of these parameters allows for the server to be started under alternative configurations to those defined in the standalone.xml, domain.xml and host.xml configuration files. This might include starting the server with an alternative set of socket bindings or a secondary configuration. A list of these available parameters can be accessed by passing the help switch at startup.

Example 2.7. 

The following example is similar to the server startup explained in Section 2.6.2, “Start JBoss Enterprise Application Platform 6 as a Standalone Server”, with the addition of the -h or --help switches. The results of the help switch are explained in the table below.
[localhost bin]$ standalone.sh -h

Table 2.6. Table of runtime switches and arguments

Argument or Switch Description
--admin-only Set the server's running type to ADMIN_ONLY. This will cause it to open administrative interfaces and accept management requests, but not start other runtime services or accept end user requests.
-b=<value> Set system property jboss.bind.address to the given value.
-b <value> Set system property jboss.bind.address to the given value.
-b<interface>=<value> Set system property jboss.bind.address.<interface> to the given value.
-c=<config> Name of the server configuration file to use. The default is standalone.xml.
-c <config> Name of the server configuration file to use. The default is standalone.xml.
-D<name>[=<value>] Set a system property.
-h Display the help message and exit.
--help Display the help message and exit.
-P=<url> Load system properties from the given URL.
-P <url> Load system properties from the given URL.
--properties=<url> Load system properties from the given URL.
-S<name>[=<value>] Set a security property.
--server-config=<config> Name of the server configuration file to use. The default is standalone.xml.
-u=<value> Set system property jboss.default.multicast.address to the given value.
-u <value> Set system property jboss.default.multicast.address to the given value.
-V Display the application server version and exit.
-v Display the application server version and exit.
--version Display the application server version and exit.