Use the delete-jvm-options subcommand in remote mode to delete JVM options from the Java configuration or profiler elements of the domain.xml file.
Ensure that the server is running.
Remote subcommands require a running server.
List JVM options by using the list-jvm-options(1) subcommand.
If necessary, notify users that the JVM option is being deleted.
Delete JVM options by using the delete-jvm-options(1) subcommand.
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.
To apply your changes, restart GlassFish Server. See To Restart a Domain.
This example removes a single JVM option.
asadmin> delete-jvm-options -Dopt1=A deleted 1 option(s) Command delete-jvm-options executed successfully. |
This example removes multiple JVM options.
asadmin> delete-jvm-options -Doption1=-value1:-Dvariable=\$HOME deleted 2 option(s) Command delete-jvm-options executed successfully. |
You can also view the full syntax and options of the subcommand by typing asadmin help delete-jvm-options at the command line.