@@ -1292,10 +1292,15 @@ These `java` options control the runtime behavior of the Java HotSpot VM.
1292
1292
1293
1293
` -XX:OnOutOfMemoryError= ` * string*
1294
1294
: Sets a custom command or a series of semicolon-separated commands to run
1295
- when an ` OutOfMemoryError ` exception is first thrown. If the string
1295
+ when an ` OutOfMemoryError ` exception is first thrown by the JVM.
1296
+ If the string
1296
1297
contains spaces, then it must be enclosed in quotation marks. For an
1297
1298
example of a command string, see the description of the ` -XX:OnError `
1298
1299
option.
1300
+ This applies only to ` OutOfMemoryError ` exceptions caused by Java Heap
1301
+ exhaustion; it does not apply to ` OutOfMemoryError ` exceptions thrown
1302
+ directly from Java code, nor by the JVM for other types of resource
1303
+ exhaustion (such as native thread creation errors).
1299
1304
1300
1305
` -XX:+PrintCommandLineFlags `
1301
1306
: Enables printing of ergonomically selected JVM flags that appeared on the
@@ -2189,10 +2194,14 @@ perform extensive debugging.
2189
2194
` -XX:+HeapDumpOnOutOfMemoryError `
2190
2195
: Enables the dumping of the Java heap to a file in the current directory by
2191
2196
using the heap profiler (HPROF) when a ` java.lang.OutOfMemoryError `
2192
- exception is thrown. You can explicitly set the heap dump file path and
2197
+ exception is thrown by the JVM . You can explicitly set the heap dump file path and
2193
2198
name using the ` -XX:HeapDumpPath ` option. By default, this option is
2194
2199
disabled and the heap isn't dumped when an ` OutOfMemoryError ` exception is
2195
2200
thrown.
2201
+ This applies only to ` OutOfMemoryError ` exceptions caused by Java Heap
2202
+ exhaustion; it does not apply to ` OutOfMemoryError ` exceptions thrown
2203
+ directly from Java code, nor by the JVM for other types of resource
2204
+ exhaustion (such as native thread creation errors).
2196
2205
2197
2206
` -XX:HeapDumpPath= ` * path*
2198
2207
: Sets the path and file name for writing the heap dump provided by the heap
0 commit comments