Skip to content

Commit ef24ddd

Browse files
committed
GitHub-26681: Noted new flag for JDK 11+
1 parent dec447a commit ef24ddd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/nodes-cluster-resource-configure-jdk.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ There are at least two ways the above can be achieved:
3939
supported by the JVM, set `-XX:+UnlockExperimentalVMOptions
4040
-XX:+UseCGroupMemoryLimitForHeap`.
4141
+
42+
[NOTE]
43+
====
44+
The `UseCGroupMemoryLimitForHeap` option has been removed in JDK 11. Use `-XX:+UseContainerSupport` instead.
45+
====
46+
+
4247
This sets `-XX:MaxRAM` to the container memory limit, and the maximum heap size
4348
(`-XX:MaxHeapSize` / `-Xmx`) to 1/`-XX:MaxRAMFraction` (1/4 by default).
4449

@@ -102,5 +107,10 @@ JAVA_TOOL_OPTIONS="-XX:+UnlockExperimentalVMOptions
102107
-XX:+UseCGroupMemoryLimitForHeap -Dsun.zip.disableMemoryMapping=true"
103108
----
104109

110+
[NOTE]
111+
====
112+
The `UseCGroupMemoryLimitForHeap` option has been removed in JDK 11. Use `-XX:+UseContainerSupport` instead.
113+
====
114+
105115
This does not guarantee that additional options are not required, but is
106116
intended to be a helpful starting point.

0 commit comments

Comments
 (0)