Create and edit your server environment files. With developer tools, you can easily
specify server script environment variables, default Java™
virtual machine (JVM) options, and server bootstrap properties.
About this task
Create a server.env file to specify server script environment variables.
Create a jvm.options file to specify default JVM options. Create a
bootstrap.properties file to specify server bootstrap properties. The files
affect the server only at startup time. If you create or edit these files while your server is
running, restart your server to pick up the changes.
Procedure
-
From the Servers view, right-click on your server to create a new server
environment file.
-
Choose one of the following options to create and store your new server:
- To create a bootstrap.properties file, select .
- To create a server.env file, select .
- To create a jvm.options file, select , and then select one of the following locations of the
jvm.options file:
- ${server.config.dir}
- Creates the file in the server configuration directory.
- ${wlp.install.dir}/usr/shared
- Creates the file in the usr/shared subdirectory of the Liberty installation directory. The file is only
available for remote servers if the server is located in the default user directory, which is
${wlp.install.dir}/usr.
- ${server.config.dir}/configDropins/defaults
- Creates the file in the configDropins/defaults subdirectory of the server
configuration directory.
- ${server.config.dir}/configDropins/overrides
- Creates the file in the configDropins/overrides subdirectory of the server
configuration directory.
-
After the editor for the new file displays, edit your file and save your changes.
- Optional:
Complete the following tasks to edit your files later:
-
Expand your server in the Servers view until you see the file.
Double-click the file to open it in an editor.
-
Expand the project for your runtime in the Enterprise Explorer view or
Project Explorer view until you see the file. Double-click the file to open it
in the editor. You can open and view the jvm.options file in the
${wlp.install.dir}/usr/shared directory only after you expand the project for
the runtime.