Oracle GlassFish Server 3.0.1 Administration Guide

ProcedureTo Create JVM Options

Use the create-jvm-options subcommand in remote mode 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 subcommands require a running server.

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

    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.

    Information about properties for the subcommand is included in this help page.

  3. To apply your changes, restart GlassFish Server. See To Restart a Domain.

Example 4–1 Creating JVM Options

This example sets multiple Java system properties.

asadmin> create-jvm-options -Dunixlocation=/root/example:
created 4 option(s)
Command create-jvm-options executed successfully.

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help create-jvm-options at the command line.