This documentation is for WSO2 Carbon 4.4.6. View documentation for the latest release.
Product Startup Options - Carbon 4.4.6 - WSO2 Documentation
Skip to end of metadata
Go to start of metadata

Given below are the options that are available when starting a WSO2 product. The product startup scripts are stored in the <PRODUCT_HOME>/bin/ directory. When you execute the startup script, you can specify the relevant startup option as shown below.

sh wso2server.sh -<startup option>

See the topic on running a product for detailed information on how to start a WSO2 server and access the management console.

Listed below are some general options that can be used for starting the server.

Startup OptionDescription
-startStarts the Carbon server using "nohup" in the background. This option is not available for Windows.
-stopStops the Carbon server process. This option is not available for Windows.
-restartRestarts the Carbon server process. This option is not available for windows.
-cleanRegistryCleans the registry space. Caution: All registry data will be lost.
-debug <port>Starts the server in remote debugging mode. The remote debugging port should be specified.
-versionShows the version of the product that you are running.
-helpLists all the available commands and system properties.

Listed below are some system properties that can be used when starting the server.

Startup OptionsDescription
-DosgiConsole=[port]Starts the Carbon server with the Equinox OSGi console. If the optional 'port' parameter is provided, a telnet port will be opened.
-DosgiDebugOptions=[options-file]Starts the Carbon server with OSGi debugging enabled. Debug options are loaded from the <PRODUCT_HOME>/repository/conf/etc/osgi-debug.options.
-DsetupCleans the registry and other configurations, recreates DB, re-populates the configuration and starts the server. Note: It is not recommended to use this option in a production environment. Instead, you can manually run the DB scripts directly in the database.
-DworkerNode

Starts the product as a worker node, which means the front-end features of your product will not be enabled.

Note that from Carbon 4.4.1 onwards, you can also start the worker profile by setting the following system property to 'true' in the product startup script before the script is executed.

-DworkerNode=false
-DserverRoles=<roles>A comma separated list of roles used in deploying Carbon applications.
-Dprofile=<profileName>Starts the server with the specified profile, e.g., worker profile.
-Dtenant.idle.time=<time>If a tenant is idle for the specified time, the tenant will be unloaded. The default tenant idle time is 30 minutes. This is required in clustered setups, which has master and worker nodes.
  • No labels