Sun GlassFish Enterprise Server v3 Prelude Administration Guide

ProcedureTo Create JVM Options

The remote create-jvm-options command enables you to create JVM options in the Java configuration or the profiler elements of the domain.xml file. If JVM options are created for a profiler, these options are used to record the settings that initiate the profiler.

  1. Ensure that the server is running.

    Remote commands require a running server.

  2. Create JVM options by using the create-jvm-options(1) command.

    To create more than one JVM option, use a colon (:) to separate the options. If the JVM option itself contains a colon (:), use the backslash (\) to offset the colon delimiter.

  3. To apply your changes, restart Enterprise Server.

    1. Stop Enterprise Server.

      For instructions, see To Stop a Domain (or Server).

    2. Start Enterprise Server.

      For instructions, see To Start a Domain (or Server).

Example 4–1 Creating JVM Options

asadmin create-jvm-options -Dunixlocation=/root/

Information similar to the following is displayed:

created 4 option(s)
Command create-jvm-options executed successfully.

See Also

To see the full syntax and options of the command, type asadmin create-jvm-options --help at the command line.