Skip to content

Commit

Permalink
Document ignored arguments section in java dumps
Browse files Browse the repository at this point in the history
Also, clean up:
* collapse multiple blank lines
* trim trailing whitespace
* expand tabs

Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
  • Loading branch information
keithc-ca committed Nov 22, 2021
1 parent 5c490aa commit 5951944
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 96 deletions.
4 changes: 0 additions & 4 deletions docs/cmdline_specifying.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

# OpenJ9 command-line options


When you start a Java&trade; application you can specify various options on the command line to configure the runtime environment. These options include:

- [System properties](d_jvm_commands.md)
Expand All @@ -36,7 +35,6 @@ Although the command line is the traditional way to specify command-line options

Options specified on the command line override the equivalent environment variables. For example, specifying `java -cp <dir1>` completely overrides setting the environment variable `CLASSPATH=<dir2>`.


## Quotation marks

Use single or double quotation marks for command-line options only when explicitly directed to do so. Single and double quotation marks have different meanings on different platforms, operating systems, and shells. Do not use `'-X<option>'` or `"-X<option>"`. Instead, you must use `-X<option>`. For example, do not use `'-Xmx500m'` and `"-Xmx500m"`. Write this option as `-Xmx500m`.
Expand All @@ -47,7 +45,6 @@ The sequence of the Java options on the command line defines which options take

java -Xint -Xjit myClass


At startup, the list of VM arguments is constructed in the following order, with the lowest precedence first:

1. Certain options are created automatically by the VM, which specify arguments such as search paths and version information. The VM automatically adds `-Xoptionsfile=<path>/options.default` at the beginning of the command line, where `<path>` is the path to the VM directory.
Expand Down Expand Up @@ -127,5 +124,4 @@ Here is an extract from a Java core file that shows the options that are used:

export _JAVA_OPTIONS="-Dmysysprop1=tcpip -Dmysysprop2=wait -Xdisablejavadump"


<!-- ==== END OF TOPIC ==== cmdline_specifying.md ==== -->
Loading

0 comments on commit 5951944

Please sign in to comment.