@@ -530,26 +530,27 @@ The value \[dq]disabled\[dq] disables finalization, so that no
530
530
finalizers are invoked.
531
531
.TP
532
532
\f[ V ] --module-path\f[ R ] \f[I] modulepath \f[ R ] ... or \f[ V ] -p\f[ R ] \f[I] modulepath \f[ R ]
533
- Specifies where to find application modules with a list of path elements.
534
- The elements of a module path can be a file path to a module or a directory
535
- containing modules. Each module is either a modular JAR or an
536
- exploded-module directory.
533
+ Specifies where to find application modules with a list of path
534
+ elements.
535
+ The elements of a module path can be a file path to a module or a
536
+ directory containing modules.
537
+ Each module is either a modular JAR or an exploded-module directory.
537
538
.RS
538
539
.PP
539
- On Windows, semicolons (\f[ V ] ;\f[ R ] ) separate path elements in this list;
540
- on other platforms it is a colon (\f[ V ] :\f[ R ] ).
540
+ On Windows, semicolons (\f[ V ] ;\f[ R ] ) separate path elements in this
541
+ list; on other platforms it is a colon (\f[ V ] :\f[ R ] ).
541
542
.RE
542
543
.TP
543
544
\f[ V ] --upgrade-module-path\f[ R ] \f[I] modulepath \f[ R ] ...
544
- Specifies where to find module replacements of upgradeable modules in the
545
- runtime image with a list of path elements.
546
- The elements of a module path can be a file path to a module or a directory
547
- containing modules. Each module is either a modular JAR or an
548
- exploded-module directory.
545
+ Specifies where to find module replacements of upgradeable modules in
546
+ the runtime image with a list of path elements.
547
+ The elements of a module path can be a file path to a module or a
548
+ directory containing modules.
549
+ Each module is either a modular JAR or an exploded-module directory.
549
550
.RS
550
551
.PP
551
- On Windows, semicolons (\f[ V ] ;\f[ R ] ) separate path elements in this list;
552
- on other platforms it is a colon (\f[ V ] :\f[ R ] ).
552
+ On Windows, semicolons (\f[ V ] ;\f[ R ] ) separate path elements in this
553
+ list; on other platforms it is a colon (\f[ V ] :\f[ R ] ).
553
554
.RE
554
555
.TP
555
556
\f[ V ] --add-modules\f[ R ] \f[I] module \f[ R ] [\f[ V ] ,\f[ R ]\f[I] module \f[ R ] ...]
@@ -1304,6 +1305,7 @@ By default this option is disabled.
1304
1305
.TP
1305
1306
\f[ V ] -XX:FlightRecorderOptions=\f[ R ]\f[I] parameter \f[ R ]\f[ V ] =\f[ R ]\f[I] value \f[ R ] (or) \f[ V ] -XX:FlightRecorderOptions:\f[ R ]\f[I] parameter \f[ R ]\f[ V ] =\f[ R ]\f[I] value \f[ R ]
1306
1307
Sets the parameters that control the behavior of JFR.
1308
+ Multiple parameters can be specified by separating them with a comma.
1307
1309
.RS
1308
1310
.PP
1309
1311
The following list contains the available JFR
@@ -1369,9 +1371,6 @@ By default, the local buffer size is set to 8 kilobytes, with a minimum
1369
1371
value of 4 kilobytes.
1370
1372
Overriding this parameter could reduce performance and is not
1371
1373
recommended.
1372
- .PP
1373
- You can specify values for multiple parameters by separating them with a
1374
- comma.
1375
1374
.RE
1376
1375
.TP
1377
1376
\f[ V ] -XX:LargePageSizeInBytes=\f[ R ]\f[I] size \f[ R ]
@@ -1658,6 +1657,9 @@ written when the recording is stopped, for example:
1658
1657
\f[ V ] /home/user/recordings/recording.jfr\f[ R ]
1659
1658
.IP \[bu ] 2
1660
1659
\f[ V ] c:\[rs ] recordings\[rs ] recording.jfr\f[ R ]
1660
+ .PP
1661
+ If %p and/or %t is specified in the filename, it expands to the
1662
+ JVM\[aq ] s PID and the current timestamp, respectively.
1661
1663
.RE
1662
1664
.TP
1663
1665
\f[ V ] name=\f[ R ]\f[I] identifier \f[ R ]
@@ -1812,19 +1814,6 @@ See \f[B]Enable Logging with the JVM Unified Logging Framework\f[R] for
1812
1814
a description of using Unified Logging.
1813
1815
.RE
1814
1816
.TP
1815
- \f[ V ] -XX:+UseHugeTLBFS\f[ R ]
1816
- \f[B] Linux only: \f[ R ] This option is the equivalent of specifying
1817
- \f[ V ] -XX:+UseLargePages\f[ R ] .
1818
- This option is disabled by default.
1819
- This option pre-allocates all large pages up-front, when memory is
1820
- reserved; consequently the JVM can\[aq ] t dynamically grow or shrink
1821
- large pages memory areas; see \f[ V ] -XX:UseTransparentHugePages\f[ R ] if
1822
- you want this behavior.
1823
- .RS
1824
- .PP
1825
- See \f[B] Large Pages \f[ R ] .
1826
- .RE
1827
- .TP
1828
1817
\f[ V ] -XX:+UseLargePages\f[ R ]
1829
1818
Enables the use of large page memory.
1830
1819
By default, this option is disabled and large page memory isn\[aq ] t
@@ -2172,37 +2161,16 @@ unlocks diagnostic JVM options.
2172
2161
Sets the list of methods (separated by commas) to which compilation
2173
2162
should be restricted.
2174
2163
Only the specified methods are compiled.
2175
- Specify each method with the full class name (including the packages and
2176
- subpackages).
2177
- For example, to compile only the \f[ V ] length()\f[ R ] method of the
2178
- \f[ V ] String\f[ R ] class and the \f[ V ] size()\f[ R ] method of the
2179
- \f[ V ] List\f[ R ] class, use the following:
2180
- .RS
2181
2164
.RS
2182
2165
.PP
2183
- \f[ V ] -XX:CompileOnly=java/lang/String.length,java/util/List.size\f[ R ]
2184
- .RE
2185
- .PP
2186
- Note that the full class name is specified, including all packages and
2187
- subpackages separated by a slash (\f[ V ] /\f[ R ] ).
2188
- For easier cut and paste operations, it\[aq ] s also possible to use the
2189
- method name format produced by the \f[ V ] -XX:+PrintCompilation\f[ R ] and
2190
- \f[ V ] -XX:+LogCompilation\f[ R ] options:
2191
- .RS
2192
- .PP
2193
- \f[ V ] -XX:CompileOnly=java.lang.String::length,java.util.List::size\f[ R ]
2194
- .RE
2195
- .PP
2196
- Although wildcards aren\[aq ] t supported, you can specify only the class
2197
- or package name to compile all methods in that class or package, as well
2198
- as specify just the method to compile methods with this name in any
2199
- class:
2166
+ \f[ V ] -XX:CompileOnly=method1,method2,...,methodN\f[ R ] is an alias for:
2200
2167
.IP
2201
2168
.nf
2202
2169
\f[CB]
2203
- -XX:CompileOnly=java/lang/String
2204
- -XX:CompileOnly=java/lang
2205
- -XX:CompileOnly=.length
2170
+ -XX:CompileCommand=compileonly,method1
2171
+ -XX:CompileCommand=compileonly,method2
2172
+ \& ...
2173
+ -XX:CompileCommand=compileonly,methodN
2206
2174
\f[ R ]
2207
2175
.fi
2208
2176
.RE
@@ -3655,14 +3623,6 @@ This is generally the best choice for small and simple applications that
3655
3623
don\[aq ] t require any special functionality from garbage collection.
3656
3624
By default, this option is disabled and the default collector is used.
3657
3625
.TP
3658
- \f[ V ] -XX:+UseSHM\f[ R ]
3659
- \f[B] Linux only: \f[ R ] Enables the JVM to use shared memory to set up
3660
- large pages.
3661
- .RS
3662
- .PP
3663
- See \f[B] Large Pages \f[ R ] for setting up large pages.
3664
- .RE
3665
- .TP
3666
3626
\f[ V ] -XX:+UseStringDeduplication\f[ R ]
3667
3627
Enables string deduplication.
3668
3628
By default, this option is disabled.
@@ -3815,6 +3775,19 @@ Controlled \f[I]relaxed strong encapsulation\f[R], as defined in
3815
3775
This option was deprecated in JDK 16 by \f[B] JEP 396 \f[ R ]
3816
3776
[https://openjdk.org/jeps/396] and made obsolete in JDK 17 by \f[B] JEP
3817
3777
403 \f[ R ] [https://openjdk.org/jeps/403].
3778
+ .TP
3779
+ \f[ V ] -XX:+UseHugeTLBFS\f[ R ]
3780
+ \f[B] Linux only: \f[ R ] This option is the equivalent of specifying
3781
+ \f[ V ] -XX:+UseLargePages\f[ R ] .
3782
+ This option is disabled by default.
3783
+ This option pre-allocates all large pages up-front, when memory is
3784
+ reserved; consequently the JVM can\[aq ] t dynamically grow or shrink
3785
+ large pages memory areas; see \f[ V ] -XX:UseTransparentHugePages\f[ R ] if
3786
+ you want this behavior.
3787
+ .TP
3788
+ \f[ V ] -XX:+UseSHM\f[ R ]
3789
+ \f[B] Linux only: \f[ R ] Enables the JVM to use shared memory to set up
3790
+ large pages.
3818
3791
.SH REMOVED JAVA OPTIONS
3819
3792
.PP
3820
3793
No documented java options have been removed in JDK 22.
@@ -4915,20 +4888,6 @@ login as \f[V]root\f[R] and run:
4915
4888
It is always recommended to check the value of \f[ V ] nr_hugepages\f[ R ]
4916
4889
after the request to make sure the kernel was able to allocate the
4917
4890
requested number of large pages.
4918
- .PP
4919
- When using the option \f[ V ] -XX:+UseSHM\f[ R ] to enable large pages you
4920
- also need to make sure the \f[ V ] SHMMAX\f[ R ] parameter is configured to
4921
- allow large enough shared memory segments to be allocated.
4922
- To allow a maximum shared segment of 8 GB, login as \f[ V ] root\f[ R ] and
4923
- run:
4924
- .RS
4925
- .PP
4926
- \f[ V ] # echo 8589934592 > /proc/sys/kernel/shmmax\f[ R ]
4927
- .RE
4928
- .PP
4929
- In some environments this is not needed since the default value is large
4930
- enough, but it is important to make sure the value is large enough to
4931
- fit the amount of memory intended to be backed by large pages.
4932
4891
.RS
4933
4892
.PP
4934
4893
\f[B] Note: \f[ R ] The values contained in \f[ V ] /proc\f[ R ] and
0 commit comments