Default environment variables
The Open Liberty environment variables in the following list can be configured in the server.env file to customize the Liberty environment. You can configure Open Liberty environment variables in your server.env
file to customize the Open Liberty environment. The ${wlp.install.dir}
configuration variable has an inferred location that is set to the parent of the directory that contains the launch script.
The following table lists the default Open Liberty environment variables and gives a brief description for each variable:
Environment Variable | Description |
---|---|
JAVA_HOME | Indicates which Java Virtual Machine (JVM) to use. If this variable is not set, the system default is used. |
JVM_ARGS | A list of command-line options, such as system properties or -X parameters, that are passed to the JVM when the server starts. Any values that contain spaces must be enclosed in quotes. |
LOG_DIR | The directory that contains the log file. The default value is |
LOG_FILE | The log file name. This log file is only used if the server start command is run in the background through the start action. |
SERVER_WORKING_DIR | The directory that contains output files from the JVM that the server uses, such as the |
VARIABLE_SOURCE_DIRS | The directories that contain files to be loaded as configuration variables. The default value is |
WLP_USER_DIR | The user or custom configuration directory that is used to store shared and server-specific configuration. See the |
WLP_OUTPUT_DIR | The directory that contains output files for defined servers. This directory must have both read and write permissions for the user or users who start servers. By default, the server output logs and work area are stored at the |
WLP_DEBUG_ADDRESS | The port to use for running the server in debug mode. The default value is |
WLP_DEBUG_SUSPEND | Whether to suspend the JVM on startup or not. This variable can be set to |
WLP_DEBUG_REMOTE | Whether to allow remote debugging or not. This variable can be set to |