Sun GlassFish Enterprise Server v3 Prelude Administration Guide

ProcedureTo Delete JVM Options

The remote delete-jvm-options command enables you to delete JVM options from the Java configuration or profiler elements of the domain.xml file.

  1. Ensure that the server is running.

    Remote commands require a running server.

  2. Obtain the exact name of the JVM option that you are deleting.

    To list the existing JVM options:


    asadmin list-jvm-options
    
  3. If necessary, notify users that the JVM option is being deleted.

  4. Delete JVM options by using the delete-jvm-options(1) command.

    To remove 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.

  5. 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–3 Deleting a JVM Option

The following example command removes a single JVM option:


asadmin delete-jvm-options -Dopt1=A

Information similar to the following is displayed:


deleted 1 option(s)
Command delete-jvm-options executed successfully.


Example 4–4 Deleting Multiple JVM Options

The following example command removes multiple JVM options:


asadmin delete-jvm-options -Doption1=-value1:-Dvariable=\$HOME

Information similar to the following is displayed:


deleted 2 option(s)
Command delete-jvm-options executed successfully.

See Also

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