Creating and editing your server environment files

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

  1. From the Servers view, right-click on your server to create a new server environment file.
  2. Choose one of the following options to create and store your new server:
    • To create a bootstrap.properties file, select New > Server Environment File > bootstrap.properties.
    • To create a server.env file, select New > Server Environment File > server.env.
    • To create a jvm.options file, select New > Server Environment File > jvm.options > , 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.
  3. After the editor for the new file displays, edit your file and save your changes.
  4. Optional: Complete the following tasks to edit your files later:
    1. Expand your server in the Servers view until you see the file. Double-click the file to open it in an editor.
    2. 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.